The FreeBSD Diary |
![]() |
(TM) | I remember |
|
Clearing out your sendmail queue
17 March 1999
|
|
This article tells you how to clear your outgoing mail queue. I had a message that wasn't going away. And I didn't want to wait for it to time out after the standard 5 days of trying. Here's the message that was filling up my logs:
Every 30 minutes. I was getting sick of it! <grin> So here's how I cleared it out: # sendmail -bp That will print a list of the mail queue. Then you do manually remove the ones you want: # cd /var/spool/mqueue # rm <insert your file name here> |
|
mailq
|
There's almost always more than one way to do something. As Sue Blake point out
to me with this command, which I had not heard of. From the man page:Mailq prints a summary of the mail messages queued for future delivery. And as Sue pointed out, mailq is much easier to remember. Here is a comparison of the output of the two commands. For privacy reasons, I have changed the actual email address.
|