Operating System - HP-UX
1748169 Members
4021 Online
108758 Solutions
New Discussion юеВ

Re: sendmail not working properly

 
SOLVED
Go to solution
sarfraz Khan_2
Occasional Advisor

sendmail not working properly

Hi all,

we are facing some problem since yesterday with sendmail. Mail showing below error.

p68KakUM019887 15952 Sat Jul 9 11:40 MAILER-DAEMON
(Deferred: local mailer (/usr/bin/rmail) exited with EX_TEMPF)

also showing rmail process in top command.

Below is out put of ps -ef |grep sendmail command

ps -ef |grep sendmail
    root 27630     1  0 12:46:45 ?         0:00 sendmail: accepting connections
    root 27631 27630  0 12:46:45 ?         0:00 sendmail: ./p6DEPAaV019994 from queue
    root 27674 27288  0 12:47:40 pts/1     0:00 grep sendmail

 

please help. Thanks in advance

 

regards

sarfraz khan

 

sarfraz khan
9 REPLIES 9
Naj
Valued Contributor
Solution

Re: sendmail not working properly

Hi,

Could you please send me maillog details

thanks

BR
Naj

____________________________________________
:: Really appreciate if you could assign some points.
:: Don't know how to assign point? Click the KUDOS! star!
sarfraz Khan_2
Occasional Advisor

Re: sendmail not working properly

hi Naj,

 

thanks for reply attached are the mail.log

 

regards

sarfraz

sarfraz khan
Dennis Handly
Acclaimed Contributor

Re: sendmail not working properly

What does mailq show?

 

It seems you have lots of these:

timeout waiting for input from local during Draining Input

sarfraz Khan_2
Occasional Advisor

Re: sendmail not working properly

mailq showing below
p68K6fUL017945 4733 Sat Jul 9 11:10 MAILER-DAEMON
(Deferred: local mailer (/usr/bin/rmail) exited with EX_TEMPF)
sarfraz khan
Steven E. Protter
Exalted Contributor

Re: sendmail not working properly

Shalom,

 

sendmail by default will try and go out port 25 resolve the MX mail exchange record and deliver the mail.

 

In most corporate environments, there is a firewall and that will not work.

 

sendmail -v -q

 

This runs the sendmail queue and will get you diagnostics.

 

Normally to get mail off yoru server you need to use the DS directive in sendmail.cf

 

DShostnamerelayserver

or

DS

[ip address of relay server]

 

Using the host name requires DNS to be working to get mail delivered, or at least host resolution. IP address does not.

 

To allow mail relay on the relay server, that normally has to be set up be ip address. Depends on what you have relaying mail what needs to be done there.

 

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
sarfraz Khan_2
Occasional Advisor

Re: sendmail not working properly

 

 

getting below error when running senmail -v -q

root... Deferred: local mailer (/usr/bin/rmail) exited with EX_TEMPFAIL

sarfraz khan
Vinoth Kumar S
Senior Member

Re: sendmail not working properly

Check for /var/mail/*.lock

 

If you found any files with extension lock that is making the draining input error. 

mark vosberg
Advisor

Re: sendmail not working properly

I ran into the same problem with a new hpux 11.31 server.  lp daemon was sending lots of emails to a local user for canceled jobs via the rmail -d option.  mailq showed lots of q'd msgs with the same error.

 

To fix it

Had to add FQDN( hostname.company.com) to sendmail.cw.  It only had the hostname in it.  I think this caused the lock file to be created.  Then stopped sendmail. rm /var/mail/username.lock; rm /var/spool/mqueue/*; start sendmail

From then on mailq was clean.

nagnampalli
Occasional Visitor

Re: sendmail not working properly

All the above checks are fine...The queue is piling up and consuming the CPU. We had to restart the sendmail whenever CPU is utilized more by sendmail. 

Any thoughts...

Below checks are fine:

Relay server details are appropriate

sendmail.cw has FQDN

I could see a lock file for root user in /var/mail/

Below is the error:

.MDeferred: local mailer (/usr/bin/rmail) exited with EX_TEMPFAIL