Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have configure my sendmail for multiple domains by creating username like

in passwd file

Now I added entry in file /etc/mail/virtusetable like   sales\ #escape to count as user not email   sales\   sales\

So when configuring the email client you provide your username as, etc. I tested with webmail and outlook it works.

Is this the best way to do it ?.Do i need to put the entry in any other file like genericstable.

share|improve this question

migrated from Nov 12 '11 at 18:31

This question came from our site for professional and enthusiast programmers.

From the description that you are giving it is not clear if this setup is working for you or not. – adamo Nov 15 '11 at 9:57

Best way? Probably not.

Though it may work, it is to have a user@hostname in your passwd file. The better way to do it would be to have a sales1, sales2 and sales3 users in your passwd file. Use the name field if you want to identify a full email address in the password file.

The virtuser table would then look like sales1 sales2 sales3

If you have sendmail configured to receive mail at domain1 domain2 and doman3, it should work fine.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.