From c8b68ba37a5c3970071fab5f49c874af9fd27ccd Mon Sep 17 00:00:00 2001 From: abenmiloud Date: Fri, 20 Mar 2020 15:53:56 +0100 Subject: [PATCH] =?UTF-8?q?R=C3=A9ajouter=20anciennes=20commandes=20pour?= =?UTF-8?q?=20purger=20la=20mailq?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HowtoPostfix.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/HowtoPostfix.md b/HowtoPostfix.md index f6c5da13..fe9b456d 100644 --- a/HowtoPostfix.md +++ b/HowtoPostfix.md @@ -281,6 +281,8 @@ Exemples pratiques : On pourra utiliser ces commandes sur des ensembles de messages via des scripts du type : ~~~ +# mailq | tail -n +2 | awk 'BEGIN { RS = "" } /user@example\.com$/ { print $1 }' | tr -d '*!' | postsuper -h - +# mailq | tail -n +2 | awk 'BEGIN { RS = "" } /example\.com$/ { print $1 }' | tr -d '*!' | postsuper -d - # mailq | awk '/^[0-9A-Z]+/&&/sender@example\.com$/{print $1}' | tr -d '*!' | postsuper -h - # mailq | awk '/^[0-9A-Z]+/&&/example\.com$/{print $1}' | tr -d '*!' | postsuper -d - # mailq > mailq.log ; for var in $(grep mailq.log | cut -b '1-12'); do postsuper -d $var; done