mirror of
https://github.com/DanWin/mail-hosting.git
synced 2024-11-21 15:10:25 +00:00
Add script to delete certain sending address from queue
This commit is contained in:
parent
fc6aca4855
commit
79f9764871
1 changed files with 3 additions and 0 deletions
3
tools/del_sending_address_from_queue.sh
Normal file
3
tools/del_sending_address_from_queue.sh
Normal 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
|
Loading…
Reference in a new issue