delete from the mailq

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


Hi

 

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/mqueue.in 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

 

Regards

Jan

 


------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
'leave mailscanner' in the body of the email.
Before posting, read the Wiki (http://wiki.mailscanner.info/)
and the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).

Support MailScanner development - buy the book off the website!




More information about the MailScanner mailing list