1834274 Members
1633 Online
110066 Solutions
New Discussion

sendmail mqueue

 
SOLVED
Go to solution
Kristopher March
Regular Advisor

sendmail mqueue

I have several files in /var/spool/mqueue

These files exist here because our mail server was down for a bit while the mail was scheduled to go out. Is there a way to signal the sendmail daemon to resend them?
"This ain't no burger flippin job!"
4 REPLIES 4
Christopher Caldwell
Honored Contributor
Solution

Re: sendmail mqueue

# sendmail -v -q

-v verbose
-q run the queue

In addition, sendmail by default on HP started from /sbin/init.d/sendmail automatically runs the queue every 30 minutes:

from /sbin/init.d/sendmail

/usr/sbin/sendmail -bd -q30m

so if you start sendmail with
/sbin/init.d/sendmail start
by default it'll run the queue every thirty minutes.
A. Clay Stephenson
Acclaimed Contributor

Re: sendmail mqueue

issue a sendmail -q command with a time specification to make sendmail process the queue once. A better way to examine the queue is to issue a sendmail -bp which will display the queue status. Man sendmail for details.
If it ain't broke, I can fix that.
Jose Mosquera
Honored Contributor

Re: sendmail mqueue

Hi,

Try stopping y restarting the sendmail service:
/sbin/init.d/./sendmail stop
/sbin/init.d/./sendmail start

Remember that sendmail variable must be set to 1, in /etc/rc.config./mailservers file.

Normally, with this action every queued mails go out. If you wish, you can remove them deleting files in /var/spool/mqueued, each email have 2 files, one is mail header and other is data. Before erasing the file of data, you can use it to resend it as a new mail.

Rgds.
Kristopher March
Regular Advisor

Re: sendmail mqueue

sendmail -q is all I needed to process the mail. Thanks all.
"This ain't no burger flippin job!"