Postfix queue(邮件队列) 管理
2013-11-18 10:43
381 查看
From time
to time
the mail queue may get filled up. This may be due to network problems or misconfiguration.
For instance,
if you botch (typo)
the relayhost parameter,
the mail will be undeliverable.
The first thing to do is fix
the problem, meaning get
the network back online, or fix
the configuration.
1. try and deliver the mail from the queue(强制发送队列中的邮件):
2. check mail queue size (查看队列大小):
3. list mails in queue (查看队列中的邮件):
4.put all deferred mail “on hold” so that no attempt is made to deliver it(暂缓发送队列中的问题邮件):
5. release mail that was put “on hold”(解除暂缓发送):
6. purge all deferred emails from the queue without delivering (删除队列中问题的邮件):
7. purge specific email from the queue by specifying its message ID (按邮件ID删除队列中的邮件):
8. 删除已经三天未发出的邮件
9. 列出所有问题邮件
10. 删除超过5天的问题邮件的退信记录
11. 复杂用法:利用grep得到特定的邮件ID,再删除,如:
From:http://www.tigerdad.cn/postfix-queue-mail-queue-management.html
to time
the mail queue may get filled up. This may be due to network problems or misconfiguration.
For instance,
if you botch (typo)
the relayhost parameter,
the mail will be undeliverable.
The first thing to do is fix
the problem, meaning get
the network back online, or fix
the configuration.
1. try and deliver the mail from the queue(强制发送队列中的邮件):
$ postfix flush or $ postqueue -f |
$ mailq | wc -l |
$ postqueue -p or $ mailq |
$ postsuper -h ALL deferred |
$ postsuper -H ALL deferred |
$ postsuper -d ALL deferred $ find /var/spool/postfix/deferred -type f -exec rm -vf {} \; |
$ postsuper -d 0C0FF240F2 |
$ find /var/spool/postfix/deferred -type f -mtime +3 -exec rm -f {} \; |
$ find /var/spool/postfix/deferred -type f \ -exec ls -l --time-style=+%Y-%m-%d_%H:%M:%S {} \; |
$ find /var/spool/postfix/defer -type f -mtime +5 -exec rm -f {} \; |
$ mailq | grep -B 1 "Hotconcerts@gmail.com" | cut -f 1 -d ! > deletionIDs" $ cat deletionIDs | postsuper -d - |
相关文章推荐
- Postfix queue(邮件队列) 管理
- postfix 邮件队列管理
- postfix邮件队列管理
- postfix管理邮件队列的小程序
- Postfix邮件队例队列管理工具
- postfix管理邮件队列
- Linux-Postfix&Extmail邮件队列问题及日常维护
- Postfix邮件队列介绍和常用命令
- 6.1.1 qmgr模块概述--postfix的邮件队列
- zimbra 的 postfix 队列管理
- Postfix中如何删除邮件队列[mailq]中的邮件
- LAMP+Postfix+Dovecot+Postfixadmin搭建邮件管理系统(三)
- Exchange系列—管理邮件队列
- postfix删除队列邮件
- Postfix queue(邮件队列) 管理 mailq postsuper -d ALL
- postfix 邮件队列问题
- LAMP+Postfix+Dovecot+Postfixadmin搭建邮件管理系统(六)
- 删除postfix队列中指定域名的邮件
- Postfix:邮件队列简介及队列操作命令
- 管理 sendmail 的邮件队列