问题描述
我正试图让Postfix在推迟的队列中只有一天保持跳动(4.x.x dsn)消息。
我的postconf
输出
queue_run_delay = 300s
bounce_queue_lifetime = 0
maximal_queue_lifetime = 1d
maximal_backoff_time = 4000s
minimal_backoff_time = 3600s
mail_version = 3.1.0
但是在mailq
输出中,我看到了5天前发送的消息。这意味着Postfix使用maximal_queue_lifetime默认值5d。
这是弹跳的例子
dsn=4.7.1,status=deferred (host mx2.emailsrvr.com[146.20.161.2] said: 451 4.7.1 Received too many messages from a new or untrusted IP: 95.213.176.6 (Z27/4708082) (G28) (in reply to RCPT TO command))
我在做什么错了?
解决方法
请在更新任何参数后重新启动Postfix服务器
Systemctl restart postfix
然后尝试运行以下命令
postqueue -f" or "postqueue -i <queue-id>"