1822543 Members
2726 Online
109642 Solutions
New Discussion юеВ

resend sendmail mqueue?

 
Hendra_3
Occasional Advisor

resend sendmail mqueue?

Hi all,
My mail server was down for a while. And there are some files in /var/spool/mqueue.
Now, sendmail is running, but it can NOT resend those files. (there's no problem with new incoming message)

# sendmail -v -qI qfh0H1KKj26593

Running /var/spool/mqueue/h0FK22P19994 (sequence 1 of 94)
Service root@mydomain.com unknown: No such file or directory
root... Host unknown (Name server: -f: host not found)
Service MAILER-DAEMON@mydomain.com unknown: No such file or directory
root... Host unknown (Name server: -f: host not found)
MAILER-DAEMON... aliased to postmaster
postmaster... aliased to root
postmaster... aliased to root
Service MAILER-DAEMON@mydomain.com unknown: No such file or directory
root... Host unknown (Name server: -f: host not found)
MAILER-DAEMON... aliased to postmaster
postmaster... aliased to root
savemail: cannot save rejected email anywhere

any idea?
4 REPLIES 4
Jochen Heuer
Respected Contributor

Re: resend sendmail mqueue?

Hi,

usually after some time the emails from the queue are delivered automatically. But if you want to force sendmail to try to deliver each email in the queue just run:

$ sendmail -q

Regards,

Jochen
Well, yeah ... I suppose there's no point in getting greedy, is there?
Steven E. Protter
Exalted Contributor

Re: resend sendmail mqueue?

try the mailq command. If it shows mail in the queue, you might have a mail realy issue.

sendmail -q will try and force mail thats in the queue to go through.

sendmail -v d38.2 target address

A good diagnostic tool.

Steve
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
Udo Konstantin
Advisor

Re: resend sendmail mqueue?

hi,

maybe i'm not sure but you need to be first authorize by your provider/email host before you can send mail to it

greets

udo
Hendra_3
Occasional Advisor

Re: resend sendmail mqueue?

my sendmail is running as daemon with queue time 1hour.
But it can not send out all email (already queue) in /var/spool/mqueue.

# ps -ax|grep sendmail
4276 ? S 0:00 /usr/sbin/sendmail -q1h

# sendmail -v d38.2 user@cleardatavoice.com
d38.2... User unknown

how to debug this?

thanks.