From 2b5b2b02200bb9d19bb269033eeb3e8b16dace19 Mon Sep 17 00:00:00 2001 From: Xoib Date: Tue, 19 May 2015 11:53:10 +0200 Subject: [PATCH 1/4] softer the greylisting delay restriction --- setup/mail-postfix.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup/mail-postfix.sh b/setup/mail-postfix.sh index e9e189a7..972d9f32 100755 --- a/setup/mail-postfix.sh +++ b/setup/mail-postfix.sh @@ -172,7 +172,7 @@ tools/editconf.py /etc/postfix/main.cf \ # Postfix connects to Postgrey on the 127.0.0.1 interface specifically. Ensure that # Postgrey listens on the same interface (and not IPv6, for instance). tools/editconf.py /etc/default/postgrey \ - POSTGREY_OPTS=\"--inet=127.0.0.1:10023\" + POSTGREY_OPTS=\"--inet=127.0.0.1:10023 --delay=180\" # Increase the message size limit from 10MB to 128MB. # The same limit is specified in nginx.conf for mail submitted via webmail and Z-Push. From 7d8b023f98ce054dadc8831811763fb59dfa41b0 Mon Sep 17 00:00:00 2001 From: Xoib Date: Tue, 19 May 2015 18:00:13 +0200 Subject: [PATCH 2/4] softer the greylisting delay restriction A lot of legit mail servers try again between 200 and 285 seconds, then 3 hours later. Why? RFC is not strict about retry timer so postfix and other MTA have their own intervals. To fix the problem of receiving these e-mail really latter, I reduced the delay of postgrey to 180 seconds (default is 300 seconds). From 6781276959fcea973881fa5a919d16d82399d0be Mon Sep 17 00:00:00 2001 From: Xoib Date: Tue, 19 May 2015 18:25:55 +0200 Subject: [PATCH 3/4] softer the greylisting delay restriction A lot of legit mail servers try again between 200 and 285 seconds, then 3 hours later. Why? RFC is not strict about retry timer so postfix and other MTA have their own intervals. To fix the problem of receiving these e-mail really latter, I reduced the delay of postgrey to 180 seconds (default is 300 seconds). --- setup/mail-postfix.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/setup/mail-postfix.sh b/setup/mail-postfix.sh index 972d9f32..efc833db 100755 --- a/setup/mail-postfix.sh +++ b/setup/mail-postfix.sh @@ -171,6 +171,11 @@ tools/editconf.py /etc/postfix/main.cf \ # Postfix connects to Postgrey on the 127.0.0.1 interface specifically. Ensure that # Postgrey listens on the same interface (and not IPv6, for instance). +# A lot of legit mail servers try to resend before 300 seconds. +# As a matter of fact RFC is not strict about retry timer so postfix and +# other MTA have their own intervals. To fix the problem of receiving +# e-mails really latter, delay of greylisting has been set to +# 180 seconds (default is 300 seconds). tools/editconf.py /etc/default/postgrey \ POSTGREY_OPTS=\"--inet=127.0.0.1:10023 --delay=180\" From 5cb9373828e4501718e505ca4ac3800a15a30e79 Mon Sep 17 00:00:00 2001 From: Xoib Date: Tue, 26 May 2015 15:52:12 +0200 Subject: [PATCH 4/4] softer the greylisting delay restriction Fix previous merge (editconf script applying well) --- setup/mail-postfix.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup/mail-postfix.sh b/setup/mail-postfix.sh index efc833db..bd10546b 100755 --- a/setup/mail-postfix.sh +++ b/setup/mail-postfix.sh @@ -177,7 +177,7 @@ tools/editconf.py /etc/postfix/main.cf \ # e-mails really latter, delay of greylisting has been set to # 180 seconds (default is 300 seconds). tools/editconf.py /etc/default/postgrey \ - POSTGREY_OPTS=\"--inet=127.0.0.1:10023 --delay=180\" + POSTGREY_OPTS=\"'--inet=127.0.0.1:10023 --delay=180'\" # Increase the message size limit from 10MB to 128MB. # The same limit is specified in nginx.conf for mail submitted via webmail and Z-Push.