07-13-2011 11:55 PM
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
Solved! Go to Solution.
07-14-2011 12:49 AM
Could you please send me maillog details
:: Really appreciate if you could assign some points.
:: Don't know how to assign point? Click the KUDOS! star!
07-14-2011 07:32 AM
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
[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.
Owner of ISN Corporation
05-08-2013 06:56 PM
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.