Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

aliases? non-user account email addressing?

Status
Not open for further replies.

rninja

Technical User
Apr 11, 2001
381
US
I am still confused as to how to get non-user account names like info@domain.com and sales@domain.com to work for each domain. Can someone point me in the right direction?

Thanks ! Rninja

smlogo.gif

 
Since you are using vhosts, aliases won't quite do the trick. You'll have to use virtusertable instead. Create a text file like the following:

info@domain1.com user@domain1.com
webmaster@domain1.com user@domain1.com
info@domain2.com user@domain2.com
webmaster@domain2.com user@domain2.com

If you want ALL mail for domain2.com to go to a user at domain2.com, you would just leave out the name in the For column:

@domain2.com user@domain2.com

once you have this file created, name it virtusertable and runn the following command:

hash /etc/mail/virtusertable

This will create /ete/mail/virtusertable.db

You may have to restart sendmail to read the new file.

If you still haven't gotten relaying to work. Create a file called /etc/mail/access and add these lines:

domain1.com RELAY
domain2.com RELAY

then run this command:

makemap hash /etc/mail/access < /etc/mail/access

This will create /etc/mail/access.db

Hope this gets you up and running.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top