在某些情况下,邮件无法成功发送,并且由于某些原因仍停留在队列前面。例如:
$ mailq
/var/spool/mqueue/q6 (1 request)
-----Q-ID----- --Size-- -----Q-Time----- ------------Sender/Recipient-----------
t5M34RxD020490 357 Mon Jun 22 12:04 <[email protected]>
8BITMIME (Deferred: 450 4.2.1 Mailbox temporary disabled for this reci)
<[email protected]>
/var/spool/mqueue/q2 is empty
/var/spool/mqueue/q5 (1 request)
-----Q-ID----- --Size-- -----Q-Time----- ------------Sender/Recipient-----------
t5JJG501000414 359 Sat Jun 20 04:16 <[email protected]>
8BITMIME (Deferred: Connection timed out with mail.server.com.)
<[email protected]>
/var/spool/mqueue/q1 (1 request)
-----Q-ID----- --Size-- -----Q-Time----- ------------Sender/Recipient-----------
t5JJG5RA000418 359 Sat Jun 20 04:16 <[email protected]>
8BITMIME (Deferred: Connection timed out with mail.server.com.)
<[email protected]>
/var/spool/mqueue/q3 is empty
/var/spool/mqueue/q4 (1 request)
-----Q-ID----- --Size-- -----Q-Time----- ------------Sender/Recipient-----------
t5JJGJU3000439 359 Sat Jun 20 04:16 <[email protected]>
8BITMIME (Deferred: Connection timed out with mail.server.com.)
<[email protected]>
Total requests: 4
我想将sendmail
这些延期/超时的邮件移到队列末尾,自动地。其余邮件不会被延迟/超时邮件阻止。我发现了一些可以从队列中删除延迟/超时邮件的 shell 脚本,但这些是次优的。
可以通过修改来做到这一点吗/etc/mail/sendmail.cf
?
或者,是否可以将阻止的邮件移动到其他空队列?目前,我的系统有 6 个队列。