如何熟悉Postfix管理命令?

Postfix

1 前言

一个问题,一篇文章,一出故事。
笔者生产环境邮件空客户端发送垃圾邮件,笔者在原因未名的情况下暂停Postfix服务。然后借助Postfix的实用程序查明原因,于是整理工具的常用方法。

2 最佳实践

2.1 打印队列的邮件

postqueue -p

2.2 查看邮件

postcat -q Queue_ID

2.3 删除某个邮件

postsuper -d Queue_ID

2.4 清理队列中的所有邮件

postsuper -d ALL

参阅文档
======================
http://www.postfix.org/postqueue.1.html
http://www.postfix.org/postcat.1.html
http://www.postfix.org/postsuper.1.html
http://www.postfix.org/postlog.1.html
http://www.postfix.org/postmap.1.html
http://www.postfix.org/postconf.5.html
http://www.postfix.org/postdrop.1.html
http://www.postfix.org/postalias.1.html
http://www.postfix.org/postkick.1.html
http://www.postfix.org/postlock.1.html
http://www.postfix.org/postmulti.1.html

没有评论

发表回复

Postfix
如何实现命令行发送邮件?

1 前言 一个问题,一篇文章,一出故事。 笔者生产环境某服务器需要发送警告邮件,于是需要配置一个邮件 …

Postfix
如何配置Postfix使用163代发邮件?

1 前言 笔者需要使用服务器需要发送通知,由于想要简单,不想搭建mail服务器,所以使用Postfi …

Postfix
如何部署Postfix发送邮件(中继)?

1 前言 笔者需要使用服务器需要发送通知,由于想要简单,不想搭建mail服务器,所以使用Postfi …