From 9905749aea949414a4a27bce3d79e7cefcae1c59 Mon Sep 17 00:00:00 2001 From: jlecour Date: Fri, 25 Sep 2020 09:48:43 +0200 Subject: [PATCH] ajout d'une commande de purge de MAILER-DAEMON --- HowtoPostfix.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/HowtoPostfix.md b/HowtoPostfix.md index 2455f079..5bae3a77 100644 --- a/HowtoPostfix.md +++ b/HowtoPostfix.md @@ -328,6 +328,18 @@ La commande **qshape** permettant par exemple de lister les messages dans la fil ornage.fr 1 0 0 0 0 0 0 0 0 0 1 ~~~ +Supprimer les mails correspondant à ce type de ligne : + +~~~ +6B28125849 3039 Fri Sep 25 07:27:53 MAILER-DAEMON +(host mx2.foo.com[1.2.3.4] said: 452 Too many incoming emails for this account (in reply to RCPT TO command)) + mail.example.com +~~~ + +~~~ +# mailq | awk '/^[0-9A-F]+/&&/MAILER-DAEMON$/{id=$1} /mail@example.com$/{print id}' | postsuper -d - +~~~ + ### Notifications Postfix envoie des notifications à ajuster avec l'option `notify_classes`.