2

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

[email protected]
[email protected]
[email protected]

in passwd file

Now I added entry in file /etc/mail/virtusetable like

[email protected]   sales\@domain1.com #escape to count as user not email
[email protected]   sales\@domain2.com
[email protected]   sales\@domain3.com

So when configuring the email client you provide your username as [email protected],[email protected] 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.

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

1 Answer 1

0

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 [email protected] sales1 [email protected] sales2 [email protected] sales3

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .