Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
General
cancel
Showing results for 
Search instead for 
Did you mean: 

Sendmail problems with messages to root

SOLVED
Go to solution
Travis Harp
Advisor

Sendmail problems with messages to root

I'm having an on going issue with sendmail when a message is sent to the root account, such as from a cronjob.

The error I get is:

Jan 27 11:00:01 sendmail[2174]: LAA02170: to=root, ctladdr=root (0/3), delay=00:00:01, xdelay=00:00:01, mailer=relay, relay=mailproxy.. [], stat=Service unavailable
Jan 27 11:00:01 sendmail[2174]: LAA02170: LAA02174: DSN: Service unavailable

I'm thinking that the system is trying to use mailproxy to send the root account messages and I'm pretty sure that is filtered on mailproxy thus the errors.


What configuration would I need to change to allow messages to go to mailproxy when they are going to an external account but process it internally when it's a local (or root) message?


Eagles may soar but weasels don't get sucked into jet engines.
4 REPLIES
Jeff Schussele
Honored Contributor

Re: Sendmail problems with messages to root

Hi Travis,

Sounds like a sendmail config problem.

Do you have the FQDN option (Dj) set?
Should look like
Dj$w.company.com #The $w resolves to hostname

Also check the localhost setting (Fw) - should be
Fw/etc/mail/sendmail.cw
the .cw should contain

localhost
loopback
your_hostname

Set those & bounce sendmail
/sbin/init.d/sendmail stop
/sbin/init.d/sendmail start

It sounds like it wants to send *everything* to the relay & you don't want local mail leaving the system

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Sridhar Bhaskarla
Honored Contributor
Solution

Re: Sendmail problems with messages to root

Hi,

CL is the macro that determines the users to whom the mail is to be sent as local.

Look for CL in your sendmail.cf file. Make it as

CL root

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Steven E. Protter
Exalted Contributor

Re: Sendmail problems with messages to root

Things to check:

/etc/resolv.conf

makes sure those servers are valid and sendmail is using them to resolve mail.

sendmail.cf does it have a DS or Dj directive? are they correct.

Run a diagnostic to collect more information

sendmail -v -d8.99 -d38.99 root

type some text

.



The entire process will be traced and you will know exactly where things hang up.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Travis Harp
Advisor

Re: Sendmail problems with messages to root

Problem solved the CL setting wasn't set up.
Thanks everyone!
Eagles may soar but weasels don't get sucked into jet engines.