博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
关于Linux下的postfix学习和总结
阅读量:7080 次
发布时间:2019-06-28

本文共 636 字,大约阅读时间需要 2 分钟。

hot3.png

关于Linux下的postfix学习和总结,

看被Queue的信:

postqueue -p 

强迫Queue信寄出:

postqueue -f

删除所有被Queue的信:

postsuper -d ALL

刪除某封Queue的信:

postsuper -d queue_id

刪除所有正在 deferred 行列中的邮件 ( 删除曾经发送失败的信 ):

postsuper -d ALL deferred

刪除所有正在 deferred 行列中的邮件 ( 查看那些信被删除 ):

find /var/spool/postfix/deferred -type f -print | xargs rm -f

刪掉3天以前无法发出的邮件:

find /var/spool/postfix/deferred -type f -mtime +3 -print | xargs rm -f

列出目前所有无法发出的郵件:

find /var/spool/postfix/deferred -type f -exec ls -l –time-style=+%Y-%m-%d_%H:%M:%S {} ;

刪除超过 5 天的 "defer" 行列中的退信记录:

find /var/spool/postfix/defer -type f -mtime +5 -print | xargs rm -f

转载于:https://my.oschina.net/thomas2/blog/301576

你可能感兴趣的文章