日本黄色一级经典视频|伊人久久精品视频|亚洲黄色色周成人视频九九九|av免费网址黄色小短片|黄色Av无码亚洲成年人|亚洲1区2区3区无码|真人黄片免费观看|无码一级小说欧美日免费三级|日韩中文字幕91在线看|精品久久久无码中文字幕边打电话

當(dāng)前位置:首頁 > 嵌入式 > 嵌入式軟件
[導(dǎo)讀] 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

 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(強(qiáng)制發(fā)送隊(duì)列中的郵件):

$ postfix flush or $ postqueue -f

2. check mail queue size (查看隊(duì)列大小):

mailq | wc -l

3. list mails in queue (查看隊(duì)列中的郵件):

$ postqueue -p or $ mailq

4.put all deferred mail “on hold” so that no attempt is made to deliver it(暫緩發(fā)送隊(duì)列中的問題郵件):

postsuper -h ALL deferred

5. release mail that was put “on hold”(解除暫緩發(fā)送):

postsuper -H ALL deferred

6. purge all deferred emails from the queue without delivering (刪除隊(duì)列中問題的郵件):

$ postsuper -d ALL deferred $ find /var/spool/postfix/deferred -type f -exec rm -vf {} \;
[!--empirenews.page--]

7. purge specific email from the queue by specifying its message ID (按郵件ID刪除隊(duì)列中的郵件):

postsuper -d 0C0FF240F2

8. 刪除已經(jīng)三天未發(fā)出的郵件

find /var/spool/postfix/deferred -type f -mtime +3 -exec rm -f {} \;

9. 列出所有問題郵件

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

10. 刪除超過5天的問題郵件的退信記錄

find /var/spool/postfix/defer -type f -mtime +5 -exec rm -f {} \;
[!--empirenews.page--]

11. 復(fù)雜用法:利用grep得到特定的郵件ID,再刪除,如:

$ mailq | grep -B 1 "Hotconcerts@gmail.com" | cut -f 1 -d ! > deletionIDs" $ cat deletionIDs | postsuper -d -
本站聲明: 本文章由作者或相關(guān)機(jī)構(gòu)授權(quán)發(fā)布,目的在于傳遞更多信息,并不代表本站贊同其觀點(diǎn),本站亦不保證或承諾內(nèi)容真實(shí)性等。需要轉(zhuǎn)載請聯(lián)系該專欄作者,如若文章內(nèi)容侵犯您的權(quán)益,請及時聯(lián)系本站刪除( 郵箱:macysun@21ic.com )。
換一批
延伸閱讀
關(guān)閉