I posted awhile back on this, wanted to try explaining it again and get some fresh eyes on this:
Say you are hosting multiple domains on one system running linux with sendmail 8.x. Now what if one domain has email@example.com
and the other firstname.lastname@example.org
Normally you would create a local account support but since the name is needed for both you have to create different local names correct? So locally you create support1 and support2. Incoming you use virtualtable so for example email@example.com
goes to support1 locally and then firstname.lastname@example.org
goes to support2 locally.
That part works... I think. The part I need help with is outgoing email. When I send from support1 it needs to say email@example.com
, and for support2 it needs to say firstname.lastname@example.org
in the from address as well.
I cant seem to get that to work. I thought this was done using genericstable. But I cant seem to get it to work. I looked at the virtual hosting document on sendmail.org and did what was instructed but no matter what I did, when I sent from support1 mailbox, the receipient always sees email@example.com
instead of firstname.lastname@example.org