Unix/Linux Go Back    

SCO Santa Cruz Operation (SCO) was a software company based in Santa Cruz, California which was best known for selling three UNIX variants for Intel x86.

Sendmail delivers mail to local user if it exists instead of passing it to the smart relay


Thread Tools Search this Thread Display Modes
Old Unix and Linux 01-09-2013
checkpro checkpro is offline
Registered User
Join Date: Dec 2007
Last Activity: 12 February 2015, 9:51 PM EST
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Sendmail delivers mail to local user if it exists instead of passing it to the smart relay

Environment: SCO Unix Openserver 6
Sendmail ver: 8.11.3

I just put this server online replacing it's old counterpart, same OS on new machine. There are many different servers on this domain, windowssrv.thisdomain.com, oldunix.thisdomain.com, and the new newunix.thisdomain.com just to name a few. The problem is when we generate emails bound for fred@thisdomain.com, if fred is setup as a user on newunix.thisdomain.com, sendmail delivers the message to the his local mailbox in /var/spool/mail/fred. The old server didn't do this. I've compared the sendmail.cf files on oldunix and newunix and they are identical right down to the '"Smart" relay host' setting and except for the machine names. I've also looked at the /etc/resolv.conf files, which are also identical. How to I tell sendmail NOT to deliver to the local mailbox if it exists?
Sponsored Links
Old Unix and Linux 01-10-2013
jgt's Unix or Linux Image
jgt jgt is offline Forum Advisor  
Registered User
Join Date: Apr 2007
Last Activity: 20 October 2017, 3:40 PM EDT
Location: 44.21.48N 80.50.15W
Posts: 1,989
Thanks: 2
Thanked 268 Times in 251 Posts
Not a solution, but a workaround.
If your old code looks something like:

runprogram |mail -s "reports today" fred@mydomain.com

change to

runprogram |rsh oldunix mail -s "reports today" fred@mydomain.com

Sponsored Links
Old Unix and Linux 01-10-2013
MadeInGermany MadeInGermany is offline Forum Staff  
Join Date: May 2012
Last Activity: 22 October 2017, 8:39 AM EDT
Location: Simplicity
Posts: 3,781
Thanks: 311
Thanked 1,267 Times in 1,146 Posts

sendmail -bv fred@thisdomain.com

sendmail -bt
0 fred@thisdomain.com

You have


then also put


Restart sendmail to take effect.
Hopefully the vendor did not build the sendmail.cf with Sun's remote mode feature - that will inhibit things like DS.
Sponsored Links

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Ho do I masquerade the "user@user.local" address in mail/mailx? gczychi OS X (Apple) 0 04-18-2009 02:31 PM
local mail relay problem in Sendmail RajaRC Linux 0 09-13-2004 03:53 AM
Sendmail Relay Solaris Security 4 06-28-2002 09:30 AM
Sendmail & mail.local + MySQL API CGrusden19 Programming 2 11-13-2001 05:18 PM

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