1837893 Members
2916 Online
110122 Solutions
New Discussion

About the mailq problem

 
peterchu
Super Advisor

About the mailq problem

As our internal SMTP mail system ( Lotus Notes)
has problem that the mails can't send from unix to notes , now, I found that there are some files stored at /var/spool/mqueue , and I tried to run mailq , I know that there are some mails will be sent out when all are resumed normal.
I want to ask
1. when will the mailq send the mail again , will it try to send the mail repeat and repeat .
2. if I want to try to send out the mailq manually , how can I do ?
3. if I want to delete the mailq , is it simply delete the file under the path /var/spool/mqueue ?


2 REPLIES 2
Steven E. Protter
Exalted Contributor

Re: About the mailq problem

2. sendmail -q
will try and push the queue right away

sendmail -v -q will send it in verbose mode, useful for diagnnostics.

3. Yes

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
Muthukumar_5
Honored Contributor

Re: About the mailq problem

You can detect queued mails information as mailq -v or sendmail -bp or lookinto /var/spool/mqueue file

It depends upon the sendmail.cf file. If you look into the options,
# minimum time in queue before retry
#O MinQueueAge=30m

It will be queued upto 30minutes before retry, minnimize it to repeat it again

You can send it manually with sendmail -q option

You can delete by making /var/spool/mqueue/* to null with normal cp /var/spool/mqueue/* /dev/null

Easy to suggest when don't know about the problem!