Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mail delivered as local

Status
Not open for further replies.

rihad

ISP
May 14, 2006
2
UA
We're using Sendmail on FreeBSD 6.0 as a local mailer (sendmail_enable=NO, all other Sendmail rc.conf set to YES by default). Our domain being example.com, and the host in question being host.example.com, we would like mail to @example.com originating on that box to be delivered via SMTP as it should, and mail to @host.example.com or plain username delivered locally (all mail is sent via the "mail" program in shell-scripts). But after a reboot after a couple of months of uptime and probably some untested changes to some /etc files, somehow mail gets delivered locally for both domains. The /etc/mail directory had been left intact since the installation of FreeBSD and everything worked. There is no local-host-names etc. _No_ changes above what sysinstall did (except for modifying /etc/aliases so that root's mail ends up in another local user's mailbox). I've read the Sendmail docs in cf/README, tried redefining confDOMAIN_NAME in /etc/mail/submit.cf, all in vain.

Some settings that might help diagnosing the problem:
hostname="host.example.com"


Please help, it's really frustrating since we're not using Sendmail.
 
I worked around the problem by editing /etc/mail/sendmail.cf and substituting $=w below by the iteral host.example.com. I've no idea how @example.com ended up in $w.

# short circuit local delivery so forwarded email works
R$=L < @ $=w . > $#local $: @ $1 special local names
R$+ < @ $=w . > $#local $: $1 regular local name
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top