delete from the mailq

Jan Agermose ja at CONVIATOR.COM
Sat Dec 17 01:25:23 GMT 2005



By accident I setup a script that was sending me emails – some
50.000 :-D anyway – I would of cause like to delete them from the
mail queue, but there might be something else in the queue, so I cannot
really just do a rm –f /var/spool/ J


Does anyone have a script or something to delete mails in queue based on
a regex? Or passing a mail address as sender or receiver address?


Right now I just setup MXdefender to delete mails having this specific
receiver and sender – in stead of delivering the mails. But this
method does take some time J





------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at with the words:
'leave mailscanner' in the body of the email.
Before posting, read the Wiki (
and the archives (

Support MailScanner development - buy the book off the website!

More information about the MailScanner mailing list