Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to clear sendmail queue 1

Status
Not open for further replies.

gallows

Technical User
Jun 12, 2004
223
US
I have a gazillion messages I need to get rid of. I clear out mqueue but they keep coming back. Here is what I do:

1. sendmail -q
2. /etc/init.d/sendmail stop
3. rm * /var/spool/mqueue/ (actuall, I cd to it)
4. /etc/init.d/sendmail start

When I go back and look mqueue is full again. What am I missing?
Running Solaris 9 and Sendmail

tks
gallows
 
Try adding the -v option to sendmail -q. It should be processing the messages in the queue and removing those files itself.

Check /var/log/syslog for the sendmail] errors.

Is there a high load on this system? By default sendmail under Solaris queues messages when the load average is over 8, which is not very useful on a large, busy multiprocessor system. If that's the problem try modifying /etc/mail/sendmail.cf, uncommenting the O QueueLA= option, setting it to a higher value and restarting sendmail.

Annihilannic.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top