联系我们:416326801#qq.com(#改成@)

img1

postfix清除指定账号的邮件队列

812 Views 标签: Linux

[root@mail ~]# cat /usr/local/src/mail_span_del.sh 
#!/bin/bash
cd /tmp
/usr/sbin/postqueue -p|egrep 'zhaogao@whgwbn.net'|awk '{print $1}' > spam_queue.txt
for i in `cat /tmp/spam_queue.txt`
do 
/usr/sbin/postsuper -d $i
done

如果觉得我的文章对您有用,打赏一下呗.

wxpay.png