|
| | Subject: | Re: cleaning up deferred queue | | Group: | Postfix-users | | From: | Noel Jones | | Date: | 29 Nov 2007 |
Trudle Spellemann wrote:
> Hi gurus!
>
> Is it safe to clean up (remove files) from the deferred
> queue while postfix is running, provided I lock each
> file using postfix locking mechanism (flock on my system)
> before removing the file?
>
> /ts
>
"postsuper -d QUEUEID" is the usual interface for deleting
files. For safety, you can put the messages on hold using
"postsuper -h QUEUEID" before you delete them.
If you have a bunch of undeliverable MAILER-DAEMON messages in
the queue, a far better solution is to stop accepting mail for
undeliverable recipients. See the archives for many
suggestions how to do this.
--
Noel Jones
|