我有 postgrey 的配置:
POSTGREY_OPTS="--inet=10023 --delay=30 --max-age=35 --auto-whitelist-clients"
根据我的一些电子邮件的标题:
X-Greylist: delayed 411 seconds by postgrey-1.35 at vm3; Tue, 18 Apr 2017 08:05:14 CEST
X-Greylist: delayed 327 seconds by postgrey-1.35 at vm3; Tue, 18 Apr 2017 15:22:51 CEST
X-Greylist: delayed 1048 seconds by postgrey-1.35 at vm3; Tue, 18 Apr 2017 15:58:53 CEST
X-Greylist: delayed 316 seconds by postgrey-1.35 at vm3; Tue, 18 Apr 2017 19:05:36 CEST
X-Greylist: delayed 348 seconds by postgrey-1.35 at vm3; Tue, 18 Apr 2017 19:06:09 CEST
X-Greylist: delayed 374 seconds by postgrey-1.35 at vm3; Tue, 18 Apr 2017 19:06:37 CEST
X-Greylist: delayed 501 seconds by postgrey-1.35 at vm3; Tue, 18 Apr 2017 19:30:48 CEST
X-Greylist: delayed 524 seconds by postgrey-1.35 at vm3; Tue, 18 Apr 2017 19:31:11 CEST
为什么延迟超过了我要求的 30 秒?
答案1
当 postfix 由于 postgrey 拒绝邮件时,发件人不知道需要等待多长时间才能尝试新的传递尝试。当邮件被暂时拒绝时,SMTP 协议无法告知发件人何时可以重试。
因此,发送者稍后会再次尝试,有时在 postgrey 配置的延迟之前,有时(很久)之后。如果是之前,postgrey 会再次拒绝该消息。当它晚于之后,postgrey 接受它并记录有效的延迟。
您无法采取任何措施来减少这种延迟。