Deleteing Mails from Sendmails queue

Ian Barnes ianb at OPTEQINT.NET
Wed Apr 20 09:06:15 IST 2005


Im using Sendmail with Mailscanner. Now i have a need to delete certain
mails from the mail queue. Im writing a basic page that will display the
mails and then the admin can just delete the mails in the queue that he

I currently use the following commands to get the queues:

Incoming: sendmail -bp -OQueueDirectory=/var/spool/
Outgoing: sendmail -bp

Now, If i want to delete a message that appears in the list, how can i do it?


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