Member Support ~ Linux Admin User Guide ~ E-mail Alias


E-mail Alias for Single User
1.  edit a file /etc/mail/virtusertable and append the following line.

cklam@newdomain.com           cklam
mchan@newdomain.com           mchan
info@newdomain.com            cklam
maggie.chan@newdomain.com     mchan
@newdomain.com                mchan
klau@otherdomain.com
         klau
kenlau@otherdomain.com
        klau
@otherdomain.com
              wchan

cklam :Emails send to cklam@newdomain.com or info@newdomain.com will store in cklam account.

mchan :Emails send to maggie.chan@newdomain.com or mchan@newdomain.com or any other username under @newdomain.com will store in mchan account.

klau: Emails send to klau@otherdomain.com or kenlau@otherdomain.com will store in mchan account.

wchan :Emails send to any other username under @newdomain.com will store in mchan account.

Note: the username in here must a valid Linux User.


2. execute the command makemap to generate the new virtual domain table.

# makemap hash /etc/mail/virtusertable < /etc/mail/virtusertable 


3. restart the sendmail

# /etc/rc.d/init.d/sendmail restart


E-mail Alias for Multiple User
1. Edit the file /etc/aliases, append the alias list at the bottom of the file.

#######################
# Local aliases below #
#######################

reseller-newdoman:
cklam,mchan
support-newdomain:
mchan
info-otherdomain:
klau@hotmail.com,wchan
sales-otherdomain:
wchan,klau


2.
edit a file /etc/mail/virtusertable and append the following line.

reseller@newdoman.com           reseller-newdoman
support@newdomain.com           support-newdomain
info@
otherdomain.com            info-otherdomain
sales@otherdomain.com           sales-otherdomain

reseller@newdoman.com : any E-mail send to reseller@newdoman.com will forward to cklam and mchan.

support@newdoman.com : any E-mail send to support@newdoman.com will forward to mchan.

info@otherdomain.com : any E-mail send to info@otherdomain.com will forward to klau@hotmail.com,wchan.

sales@otherdomain.com : any E-mail send to sales@otherdomain.com will forward to wchan,klau.

3. execute the command makemap to generate the new virtual domain table.

# makemap hash /etc/mail/virtusertable < /etc/mail/virtusertable 


4. restart the sendmail

# /etc/rc.d/init.d/sendmail restart

 

Room 1619, Fortune Commercial Building, 362 Sha Tsui Road, Tsuen Wan, N.T.
Tel: (852) 2409-8602    Fax: (852) 2408-8632    E-mail: info@unisite.net