Sendmail delivers mail to local user if it exists instead of passing it to the smart relay | Unix Linux Forums | SCO

  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

SCO


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 01-09-2013
checkpro checkpro is offline
Registered User
 
Join Date: Dec 2007
Last Activity: 14 August 2013, 2:41 PM EDT
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
    #2  
Old 01-10-2013
jgt's Avatar
jgt jgt is offline Forum Advisor  
Registered User
 
Join Date: Apr 2007
Last Activity: 24 September 2014, 1:57 PM EDT
Location: 44.21.48N 80.50.15W
Posts: 1,553
Thanks: 1
Thanked 158 Times in 150 Posts
Not a solution, but a workaround.
If your old code looks something like:

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

change to

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

Sponsored Links
    #3  
Old 01-10-2013
MadeInGermany MadeInGermany is offline Forum Advisor  
Registered User
 
Join Date: May 2012
Last Activity: 29 September 2014, 1:02 PM EDT
Location: Simplicity
Posts: 1,924
Thanks: 123
Thanked 561 Times in 509 Posts
Debugging:

Code:
sendmail -bv fred@thisdomain.com


Code:
sendmail -bt
0 fred@thisdomain.com
^D

You have

DSsmarthost

then also put

DHsmarthost

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
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Configure sendmail on Solaris 10 to relay al mail maxranzy Solaris 2 11-30-2010 08:50 AM
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 11:51 AM.