Results 1 to 2 of 2
Hi Folks, Did a search here but could find nothing related, so I figured I'd just ask (again). I am using Sendmail 8.13.8 on FC5. I can see the contents ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 03-23-2007 #1
- Join Date
- Nov 2006
Deleting emails from sendmail queue
Did a search here but could find nothing related, so I figured I'd just ask (again).
I am using Sendmail 8.13.8 on FC5. I can see the contents of the current mail queue using the command 'mailq'.
How do I delete messages from there (on account of misspelled domain names, etc) ?
The man page for both sendmail and mailq has 4 options for processing emails based on certain parameters (recipient, sender, etc). But none for removing/deleting emails from the queue, the same way. Is it possible ?
- 03-25-2007 #2
- Join Date
- Jan 2007
wait for some more time and they will be purged automatically depending on your configuration
But if you are the kind who want to do some dangerous things, then the directory in which the mails are queued is /var/spool/mqueue/
Delete all contents of this dir and restart sendmail ... whola! all the mails in the queue are gone <- again "Handle with CARE"