postfix 經常使用命令及使用小技巧

mailq    查詢郵件隊列ide

postsuper -d ALL     刪除隊列全部郵件post


/usr/sbin/postqueue -p|egrep 'xxx@abc.com'|awk '{print $1}' > /tmp/queue.txt隊列

for i in `cat /tmp/queue.txt`; do /usr/sbin/postsuper -d $i; done        批量刪除指定MID;it

相關文章
相關標籤/搜索