2014-12-21 23:19:15 +08:00
|
|
|
|
Postfix 技巧和故障排除命令
|
2014-11-20 14:16:39 +08:00
|
|
|
|
================================================================================
|
2014-11-21 16:29:30 +08:00
|
|
|
|
这里是一些我每天用的命令,当然,其他的email管理员也会使用,因此我写下来,以防我忘记。
|
2014-11-20 14:16:39 +08:00
|
|
|
|
|
2014-11-21 16:29:30 +08:00
|
|
|
|
列出/打印当前邮件队列
|
2014-11-20 14:16:39 +08:00
|
|
|
|
|
|
|
|
|
# postqueue –p
|
|
|
|
|
|
|
|
|
|
# mailq
|
|
|
|
|
|
2014-11-21 16:29:30 +08:00
|
|
|
|
如果队列太长,可以使用tail管道读取。
|
2014-11-20 14:16:39 +08:00
|
|
|
|
|
|
|
|
|
# mailq | tail
|
|
|
|
|
|
2014-11-21 16:29:30 +08:00
|
|
|
|
清理队列
|
2014-11-20 14:16:39 +08:00
|
|
|
|
|
|
|
|
|
# postqueue -f
|
|
|
|
|
|
2014-12-21 23:19:15 +08:00
|
|
|
|
立即投递某domain.com域名的所有邮件
|
2014-11-20 14:16:39 +08:00
|
|
|
|
|
|
|
|
|
# postqueue -s domain.com
|
|
|
|
|
|
2014-11-21 16:29:30 +08:00
|
|
|
|
删除所有队列
|
2014-11-20 14:16:39 +08:00
|
|
|
|
|
|
|
|
|
# postsuper -d ALL
|
|
|
|
|
|
2014-11-21 16:29:30 +08:00
|
|
|
|
删除指定的消息
|
2014-11-20 14:16:39 +08:00
|
|
|
|
|
|
|
|
|
# postsuper -d messageid
|
|
|
|
|
|
2014-11-21 16:29:30 +08:00
|
|
|
|
重新排队邮件或者重新发送指定邮件
|
2014-11-20 14:16:39 +08:00
|
|
|
|
|
|
|
|
|
#postfix -r msgid
|
|
|
|
|
|
2014-11-21 16:29:30 +08:00
|
|
|
|
查找邮件版本
|
2014-11-20 14:16:39 +08:00
|
|
|
|
|
|
|
|
|
#postconf -d mail_version
|
|
|
|
|
mail_version = 2.6.6
|
|
|
|
|
|
2014-11-21 16:29:30 +08:00
|
|
|
|
你也可以查看下面的连接,这个连接有很多例子和不错的可用的解释文档,可以用来配置postfix.
|
2014-11-20 14:16:39 +08:00
|
|
|
|
|
2014-12-21 23:19:15 +08:00
|
|
|
|
[Postfix Configuration][1]
|
2014-11-20 14:16:39 +08:00
|
|
|
|
|
|
|
|
|
--------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
via: http://techarena51.com/index.php/postfix-configuration-and-explanation-of-parameters/
|
|
|
|
|
|
|
|
|
|
作者:[Leo G][a]
|
2014-11-21 16:29:30 +08:00
|
|
|
|
译者:[Vic020](http://www.vicyu.net)
|
2014-12-21 23:19:15 +08:00
|
|
|
|
校对:[wxy](https://github.com/wxy)
|
2014-11-20 14:16:39 +08:00
|
|
|
|
|
|
|
|
|
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
|
|
|
|
|
|
|
|
|
|
[a]:http://techarena51.com/
|
2014-11-20 18:43:30 +08:00
|
|
|
|
[1]:http://www.apricot.net/apricot2004/doc/cd_content/24th%20February%202004/04%20-%20TTF%20Anti%20Spam%20&%20Anti%20Net%20Abuse%20-%20Suresh%20Ramasubramaniam/Devdas%20Bhagat.pdf
|