logo

Deleting mail in postfix queue (mailq)

Date: 2008-02-04

Postfix stores mails in a queue before sending it. Sometimes you wish to remove the mails from the queue but wonder how. Postfix has a command line called postsuper which can be used to delete unsent mails from the queue. Before removing the mail from the queue it is good idea to list all mails in the queue. By issuing the command:

Code:

mailq

you will list all of the mails which are queued or simply timed out for some reason.

If you want to remove a mail from the "mailq" type:

Code:

postsuper -d mailID

where mailID is the ID of the mail in the mail queue.

Issuing the command:

Code:

postsuper -d ALL

will delete all queued mails from the mailq.

Robert

2008-02-04 00:10:35

Thank you. I tried man mailq to find out how to remove the mails from the queue but with no luck.


Tariqgl.ib.ly/archives/10-Deleting-specific-emails-from-the-mail-

2009-01-08 13:18:03

Nice and concise, thanks.


brzoza

2010-09-15 12:04:08

was usefull, thx


You cuodln’t pay meYou cuodln’t pay me to ignore these posts!

2011-07-18 01:06:38

You cuodln’t pay me to ignore these posts!


ubuntudog.com © 2017 | About | Sitemap | Contact