postfix Queue bereinigen
Erstellt von Dominik am Mittwoch 14. Januar 2009
Alle deferred Mails im postfix an eine bestimmte Adresse löscht man mit diesem Befehl (siehe auch “man postfix”)
mailq | tail +2 | awk ‘BEGIN { RS = “” }
/ user@example.com$/ { print $1 }
‘ | tr -d ‘*!’ | postsuper -d -
UPDATE 21.1.09
for i in `mailq |grep user@example.com |awk ‘{print $1}’ |sed ‘s/\*//’` ; do /usr/sbin/postsuper -d $i ; done;
