Add script to delete certain sending address from queue

This commit is contained in:
Daniel Winzen 2022-05-22 14:24:34 +02:00
parent fc6aca4855
commit 79f9764871
No known key found for this signature in database
GPG key ID: 222FCC3F35C41077

View file

@ -0,0 +1,3 @@
#!/bin/sh
(test "$1" != "") || (echo "Need email address to delete from queue" && exit 1)
for i in `mailq | grep "$1" | awk '{print $1;}' | sed -e 's/\*//'`; do postsuper -d $i; done