Messaging
Showing results for 
Search instead for 
Do you mean 

sendmail not working properly

SOLVED
Go to Solution
Highlighted
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
1 ACCEPTED SOLUTION
Valued Contributor

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!
8 REPLIES
Valued Contributor

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

Re: sendmail not working properly

hi Naj,

 

thanks for reply attached are the mail.log

 

regards

sarfraz

sarfraz khan
Acclaimed Contributor 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



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
Exalted Contributor 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
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
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. 

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.