Sendmail Help

Discuss Applications
Post Reply
Posts: 225
Joined: Thu May 08, 2003 1:59 pm
Location: In the cloud

Sendmail Help

Post by byrdman » Tue Jun 10, 2003 7:43 am

Question for the AllKnowings...
I need your help. If I am using sendmail to host multiple number of domains, I noticed that the account 'byrdman -at -' also recieves mail to the account 'byrdman -at- domaintwo.two'...
What I want to be able to do is have a 'contact@' address for each of these companies but don't know where to map it, and make each one different.
Please helpme - ignorant@sendmail

User avatar
Void Main
Site Admin
Site Admin
Posts: 5716
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA

Post by Void Main » Tue Jun 10, 2003 9:41 am

I do this but I am not sure it is the only way. The first thing you have to do is have two separate "real" accounts. You would have "" go to the real account "byrdman1" and "" go to the real account "byrdman2". You do this by adding the entries to the "/etc/mail/virtusertable":

Code: Select all       byrdman1       byrdman2
The above is not exactly how I do it because I need the actual email address to end up going to sevaral "real" addresses. An example is having a "" where several people need to get messages sent to that address. A completely different group of people need to get mail sent to "". The way I do this is to use mail aliases in addition to the virtusertable. The /etc/mail/virtusertable would look like this:

Code: Select all      contactalias1      contactalias2
and in the /etc/aliases file you would have:

Code: Select all

contactalias1:   user1, user2,
contactalias2:   user4, user5,
Hope this helps...

Just looked it up on the sendmail web site and they suggest doing it the way I did above. This is probably the page where I learned how to do it:

Post Reply