LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Sendmail - accepting mail for new domain (https://www.linuxquestions.org/questions/linux-server-73/sendmail-accepting-mail-for-new-domain-4175446183/)

sencha 01-18-2013 08:36 AM

Sendmail - accepting mail for new domain
 
Hi,

I have sendmail running on RHEL 5 and I currently accept mail for one domain foo.com and one subdomain sub.foo.com. As the result of a branding exercise I need to also accept mail for newfoo.com.

My goal is to have messages sent to the new addresses delivered to the existing mailboxes. Can I do this simply by adding newfoo.com to /etc/mail/local-host-names or is something required in /etc/mail/virtualusertable as well?

Thanks in advance.

bathory 01-18-2013 09:42 AM

Hi,

Quote:

My goal is to have messages sent to the new addresses delivered to the existing mailboxes. Can I do this simply by adding newfoo.com to /etc/mail/local-host-names or is something required in /etc/mail/virtualusertable as well?
Yes you can add the new domain in /etc/mail/local-host-names. You should use /etc/mail/virtualusertable only for users that are not the same for both domains.

Regards

sencha 01-18-2013 10:12 AM

So to clarify, if I normally accept mail for jdoe@foo.com and I know also want to accept mail for john.doe@newfoo.com, as long as I alias out john.doe: jdoe, and add newfoo.com to the local-host-names file I should be good to go?

bathory 01-18-2013 10:45 AM

Quote:

Originally Posted by sencha (Post 4872958)
So to clarify, if I normally accept mail for jdoe@foo.com and I know also want to accept mail for john.doe@newfoo.com, as long as I alias out john.doe: jdoe, and add newfoo.com to the local-host-names file I should be good to go?

Yes. The user jdoe will accept mail also for the user john.doe@newfoo.com

Regards


All times are GMT -5. The time now is 09:51 AM.