Deleteing Mails from Sendmails queue

Steve Freegard smf at F2S.COM
Wed Apr 20 10:48:30 IST 2005


On Wed, 2005-04-20 at 09:06 +0100, Ian Barnes wrote:
> Hi,
>
> 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
> chooses.
>
> I currently use the following commands to get the queues:
>
> Incoming: sendmail -bp -OQueueDirectory=/var/spool/mqueue.in
> Outgoing: sendmail -bp
>
> Now, If i want to delete a message that appears in the list, how can i do it?
>

Firstly - you'll need to make sure that the user you are running as has
permissions to the relevant directories and files - then you can run:

$ rm <path to spool dir>/qf<msgid> <path to spool dir>/df<msgid>

to remove the message pairs - I don't fancy your chances or removing
anything from the Incoming queue before it get's processed by
MailScanner (unless you've a huge backlog).

Regards,
Steve.

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