Hi All,
I have a RH8.0 Linux box that I'd like to host multiple e-mail domains. I have configured the sendmail 8.12.5 to accept e-mail messages for multiple users and domains as follows:
Hostname: mailsrvr.domain1.com
Domain1.com
userA@domain1.com userA
userB@domain1.com userB
userC@domain1.com userC
Domain2.com
userX@domain2.com userX
userY@domain2.com userY
userZ@domain2.com userZ
The users from different domains have no problem received their e-mails from remote users, however when the internal users send e-mail messages to external users. The “From:” field of the messages shows as userA@mailsrvr.domain1.com or userZ@mailsrvr.domain1.com when “userA” and “userZ” send out an e-mail message respectively. How do you configure the sendmail to know that when “userY” send an e-mail message to the external users, it shows the “From:” field correctly as userY@domain2.com instead of userY@mailsrvr.domain1.com.
Please let me know if you have any idea.
Many Thanks
Brandon
brandon_d_tran@yahoo.com
Report Offensive Message For Removal
Response Number 1
Name: Danny Larouche
Date: January 16, 2003 at 15:24:02 Pacific
Subject: Linux Sendmail
Reply:
I think this problem doesnt belong to sendmail but to the smtp-client config. Take a logs to sendmail's log file to see what appear in "MAIL FROM:" field of the smtp session.
Report Offensive Follow Up For Removal
Response Number 2
Name: David Perry
Date: January 16, 2003 at 21:12:15 Pacific
Subject: Linux Sendmail
Reply:
Look at the optional sendmail configuration file 'genericsuser' . It translates outbound email IDs to a whatever you like.
Report Offensive Follow Up For Removal
Response Number 3
Name: David Perry
Date: January 17, 2003 at 04:29:23 Pacific
Subject: Linux Sendmail
Reply:
You can also look at masquerade and masquerade envelope if you mail from
user@localnethost1.domain.com
user@localnethost2.domain.com
user@localnethost3.domain.com
user@localnethost4.domain.com
to all appear as user@domain.com
Report Offensive Follow Up For Removal
Response Number 4
Name: bdtran
Date: January 21, 2003 at 12:39:56 Pacific
Subject: Linux Sendmail
Reply:
David Perry and Danny Larouche, Thank you very much for your help.
It’s work perfectly when I tried to add “genericstable” and “masquerade_envelope” Features to sendmail.mc > sendmail.cf file. Now I have noticed another problem as when an external user sent an e-mail message to the internal user (userA@domain1.com). It’s worked fine. This userA should only be accepted the e-mail message that address to userA@domain1.com. Since our server is hosted for multiple e-mail domain for instance:
userA@domain1.com
userB@domain2.com
userC@domain3.com
etc.
The problems were that the “userA” not only accepted the e-mail message to userA@domain1.com but also accepted the e-mail message that address to userA@domain2.com and userA@domain3.com. In other words, any users in this e-mail server can be sent an e-mail message to by using all the e-mail domains hosts on this server. How do you prevent this problem as we only want “userA” can only be addressed by userA@domain1.com not with other virtual domains.
Our virtusertable settings as follows
userA@domain1.com userA
userB@domain2.com userB
userC@domain3.com userC
and here’s our local-host-names settings:
domain1.com
domain2.com
domain3.com
Please help!
Thanks
Brandon