delete from the mailq

Greg Matthews gmatt at NERC.AC.UK
Fri Dec 23 10:07:29 GMT 2005

On Fri, 2005-12-16 at 19:25 -0600, Jan Agermose wrote:
> 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? 

I've used the attached perl script in the past, edit one of the regexs
to match your mails. Seems pretty fast.


> Jan
Greg Matthews           01491 692445
Head of UNIX/Linux, iTSS Wallingford

------------------------ 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