mail-hosting-mirror/tools/del_sending_address_from_queue.sh
2022-05-22 15:10:47 +02:00

3 lines
183 B
Bash
Executable file

#!/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