Add script to delete certain sending address from queue

This commit is contained in:
danwin1210 committed 2022-05-22 14:24:34 +02:00
1 parent fc6aca4855
commit 79f9764871
1 file changed
+3
+3
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