Salut,

On 27 juin 2011, at 11:09, Nicolas Michel wrote:

> I have mails in the queue (I can see them with mailq).
> 
> A) I want to delete them
> - postqueue -f

nope, it will just flush the queue (force a new delivery attempt)

> - postsuper -d ALL
> - mailq | awk '{if (NF == 7) print $1'} | postsuper -d -

both do almost the same, but the second one will fail on messages with 
particular status ("on delivery", or "on hold"), because a "*" or a "!" is 
appended to the ID of the message.

> B) I want to move queued mail in the delivery process of postfix (to force 
> the retry of the delivery)
> 
> - postsuper -r ALL

-r is not for retry, it's for requeue. Don't use it unless you really want the 
requeue process to be done. Use postqueue -f instead.


Patrick PRONIEWSKI
-- 
Administrateur Système - DSI - Université Lumière Lyon 2

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to