Postfix
Postgrey 延遲比灰名單時間長:為什麼?
我有這個配置的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 秒?
當 postfix 因為 postgrey 拒絕郵件時,發件人不知道要等待多長時間才能嘗試新的投遞嘗試。當郵件被暫時拒絕時,SMTP 協議無法告知發件人何時可以重試。
因此,發件人稍後再試一次,有時在 postgrey 配置的延遲之前,有時(很多)之後。如果是之前,postgrey 將再次拒絕該消息。之後,postgrey 接受它並記錄有效延遲。
就您而言,您無能為力來減少這種延遲。