Question : Clear sendmail mail queue automatically

We using sendmail server for local intranet mail. some time mails are in queue. we need to clear the queue manually. we want to clear the mail queue automatically or we need to receive mail alert regarding mailq to administrator.

Answer : Clear sendmail mail queue automatically

You should probably just leave the queue alone and let it work itself out. If messages are in there, there is a reason, and forcing the queue probably won't help. Most of the time it's due to delivery problems (recipient's box is full and the server wont' accept any more, being greylisted, or even backscatter). Sendmail will keep trying to send these are regular intervals on its own.
Random Solutions  
 
programming4us programming4us