天天看點

Postfix queue(郵件隊列) 管理

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

繼續閱讀