本站即日起正式部署SSL证书启用https安全连接, 联系站长:416326801#qq.com(#改成@)

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

1270 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

您可能感兴趣: