Originally Posted by blainemiller
I have a server (RHEL 4.7) with an mqueue that keeps growing over a two or three day interval. Then I have to manually flush the queue by removing all the mail in the spool directory as the sendmail flush command doesn't work.
I've looked at the mail queue manually with a sendmail -bp command and it seems to show an occaisional mail item in the queue. On the other hand, there seems to be a lot more non-legitimate emails in the queue spool.
First, how do I find out the source of the email in the main queue? Next, how do I stop it from building the queue? Next, is there anyway to automatically flush the queue once it builds if I need to?
Sorry, but I'm a serious newbie when it comes to email and specifically sendmail server.
I've googled for an answer and only find links to the Sendmail server site and its' (to me) cryptic command structure.
There are a few things you need to do to investigate.
Stop the mail server.
Examine the messages and headers in /var/spool/mqueue and clientqueue to determine the source and destination.
Tail the maillog...
tail -f /var/log/maillog
Run the above command in the background if you need to.
Check your mail server for an open relay.
Report back so we can determine the next course of action