如何清除从后缀队列延迟的消息

我在学什么,在这个地球上的步行

如何清除从后缀队列延迟的消息

今天我看了从日志文件 后缀 (在 CentOS 6.X 默认是 /var/日志/maillog) 看到很多被推迟的消息.

Jan 5 15:02:03 vps3 postfix/smtp[27441]: 3187E2180015: to=<undesired@domain.com>, relay=domain.com[167.114.XXX.XXX]:25, delay=254553, delays=254538/0.2/15/0, dsn=
4.4.2, status=deferred (conversation with domain.com[167.114.XXX.XXX] timed out while receiving the initial server greeting)
Jan 5 15:02:03 vps3 postfix/smtp[27442]: CDED02180014: to=<undesired@domain.com.br>, relay=domain.com[167.114.XXX.XXX]:25, delay=258753, delays=258738/0.13/15/0, dsn
=4.4.2, status=deferred (conversation with domain.com[167.114.XXX.XXX] timed out while receiving the initial server greeting)
Jan 5 15:02:03 vps3 postfix/smtp[27443]: C8EE72180012: to=<undesired@domain.com.br>, relay=domain.com[167.114.XXX.XXX]:25, delay=258753, delays=258738/0.14/15/0, dsn
=4.4.2, status=deferred (conversation with domain.com[167.114.XXX.XXX] timed out while receiving the initial server greeting)
Jan 5 15:02:03 vps3 postfix/smtp[27444]: CDCE32180013: to=<undesired@domain.com.br>, relay=domain.com[167.114.XXX.XXX]:25, delay=258753, delays=258738/0.15/15/0, dsn
=4.4.2, status=deferred (conversation with domain.com[167.114.XXX.XXX] timed out while receiving the initial server greeting)

而且这些消息不时重复.

这是因为我设置邮件服务器进行中继最终交付了来自特定帐户到 Gmail 帐户的邮件和一些应该被阻止的消息. 当终于完成了重新配置所有, 后缀可以不再传递这些邮件域检查规则由于发件人和总是此邮件标记为递延.
这里, 该消息是最不重要的事情. 我所需要的是为这些行消失从日志.
So here’;s 提示要干净的猎物,消息队列和那去任何理由.

想看看什么您有在您的邮件队列类型:

# mailq

# postqueue-p

你看到的结果那样:

-Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
2CFD22180017 6361 Mon Jan 4 16:27:13 root@as8.producoesvsrevolucao.com.br
(host alt1.gmail-smtp-in.l.google.com[64.233.190.27] said: 421-4.7.0 [192.99.43.88 15] Our system has detected an unusual rate of 421-4.7.0 unsolicited mail originating from your IP address. To protect our 421-4.7.0 users from spam, mail sent from your IP address has been temporarily 421-4.7.0 rate limited. Please visit 421-4.7.0 https://support.google.com/mail/answer/81126 to review our Bulk Email 421 4.7.0 Senders Guidelines. 66si4725003qhp.11 - gsmtp (in reply to end of DATA command))
xxxnononoxxx@gmail.com

AB6302180016 1062 Sat Jan 2 17:43:22 advertise.bz222yiaku@gmail.com
(host alt1.gmail-smtp-in.l.google.com[64.233.190.27] said: 421-4.7.0 [192.99.43.88 15] Our system has detected an unusual rate of 421-4.7.0 unsolicited mail originating from your IP address. To protect our 421-4.7.0 users from spam, mail sent from your IP address has been temporarily 421-4.7.0 rate limited. Please visit 421-4.7.0 https://support.google.com/mail/answer/81126 to review our Bulk Email 421 4.7.0 Senders Guidelines. j133si42716128qhj.106 - gsmtp (in reply to end of DATA command))
xxxnononoxxx@gmail.com

849F02180010 3677 Thu Dec 31 20:22:07 gtve5x@gmail.com
(host alt1.gmail-smtp-in.l.google.com[64.233.190.27] said: 421-4.7.0 [192.99.43.88 15] Our system has detected an unusual rate of 421-4.7.0 unsolicited mail originating from your IP address. To protect our 421-4.7.0 users from spam, mail sent from your IP address has been temporarily 421-4.7.0 rate limited. Please visit 421-4.7.0 https://support.google.com/mail/answer/81126 to review our Bulk Email 421 4.7.0 Senders Guidelines. g70si65400626qkh.92 - gsmtp (in reply to end of DATA command))
xxxnononoxxx@gmail.com

-- 12 Kbytes in 3 Requests.

每一行是在队列中的消息. 第一个块是队列 Id.

要删除一个消息从队列类型:

# postsuper -d AB6302180016
postsuper: AB6302180016: removed
postsuper: Deleted: 1 message

这将删除该邮件 849F02180010 从队列.

其他有用的命令:

# 后缀刷新

# 后缀-f

刷新后缀的队列中的所有邮件.

# postsuper-d 所有

从队列中删除的所有邮件.

# postsuper-d 所有延迟

从队列中删除所有延期发送的邮件.

 ;

留言

您的电子邮件地址将不会发布. 标记必填的字段 *

此网站使用 Akismet 减少垃圾邮件. 了解如何处理注释数据.