Operating System - HP-UX
1751794 Members
5241 Online
108781 Solutions
New Discussion юеВ

Re: 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 4
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.