Re: sendmail not working properly (1605 Views)
Reply
Occasional Advisor
sarfraz Khan_2
Posts: 24
Registered: ‎03-22-2010
Message 1 of 9 (3,128 Views)
Accepted Solution

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
Valued Contributor
Naj
Posts: 169
Registered: ‎06-16-2011
Message 2 of 9 (3,125 Views)

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!
Occasional Advisor
sarfraz Khan_2
Posts: 24
Registered: ‎03-22-2010
Message 3 of 9 (3,119 Views)

Re: sendmail not working properly

hi Naj,

 

thanks for reply attached are the mail.log

 

regards

sarfraz

sarfraz khan
Acclaimed Contributor
Dennis Handly
Posts: 25,072
Registered: ‎03-06-2006
Message 4 of 9 (3,111 Views)

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



Occasional Advisor
sarfraz Khan_2
Posts: 24
Registered: ‎03-22-2010
Message 5 of 9 (3,107 Views)

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
Exalted Contributor
Steven E. Protter
Posts: 33,806
Registered: ‎08-15-2002
Message 6 of 9 (3,076 Views)

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
Occasional Advisor
sarfraz Khan_2
Posts: 24
Registered: ‎03-22-2010
Message 7 of 9 (3,062 Views)

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
Senior Member
Vinoth Kumar S
Posts: 2
Registered: ‎01-12-2009
Message 8 of 9 (2,292 Views)

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. 

Advisor
mark vosberg
Posts: 28
Registered: ‎02-18-2002
Message 9 of 9 (1,605 Views)

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.

The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.