From 48ccac9e787a7c3accd2407ab7ec8fd1eb92a33c Mon Sep 17 00:00:00 2001 From: Zhang Huangbin Date: Wed, 4 Jul 2018 10:20:44 +0200 Subject: [PATCH] Mention how to disable postscreen service. --- en_US/howto/1-enable.smtp.auth.on.port.25.md | 1 + en_US/howto/enable.postscreen.md | 25 ++++++++++++++++++++ html/enable.postscreen.html | 25 ++++++++++++++++++++ html/enable.smtp.auth.on.port.25.html | 1 + 4 files changed, 52 insertions(+) diff --git a/en_US/howto/1-enable.smtp.auth.on.port.25.md b/en_US/howto/1-enable.smtp.auth.on.port.25.md index eb04323f..88ee55b2 100644 --- a/en_US/howto/1-enable.smtp.auth.on.port.25.md +++ b/en_US/howto/1-enable.smtp.auth.on.port.25.md @@ -12,6 +12,7 @@ below to enable it. connection, you may try another tutorial instead: [Allow internal network devices to send email with insecure connection](./additional.smtp.port.html) +* Disable postscreen service first: [Disable postscreen service](./enable.postscreen.html#disable-postscreen-service). * Find comment out settings in Postfix config file `/etc/postfix/main.cf` (Linux/OpenBSD) or `/usr/local/etc/postfix/main.cf` (FreeBSD): diff --git a/en_US/howto/enable.postscreen.md b/en_US/howto/enable.postscreen.md index 31876cfc..81d4616d 100644 --- a/en_US/howto/enable.postscreen.md +++ b/en_US/howto/enable.postscreen.md @@ -30,6 +30,31 @@ Important notes: (FreeBSD) to check the DNSBL servers it enabled, you're free to remove some of them (or add new ones) if you want. +## Disable postscreen service + +If your iRedMail already have postscreen service enabled, it's easy to disable +it by following steps below. + +* Open file `/etc/postfix/master.cf`, find lines below (usually they're first + few lines in this file): + +``` +#smtp inet n - - - - smtpd +smtp inet n - - - 1 postscreen +smtpd pass - - n - - smtpd +``` + +* Uncomment first line, comment out the other 2 lines: + +``` +smtp inet n - - - - smtpd +#smtp inet n - - - 1 postscreen +#smtpd pass - - n - - smtpd +``` + +* Now restart or reload Postfix service. That's it. No need to modify any + setting in `/etc/postfix/main.cf`. + ## See Also If you don't want to use postscreen service, you can [enable DNSBL service](./enable.dnsbl.html) diff --git a/html/enable.postscreen.html b/html/enable.postscreen.html index df262d03..2756d29d 100644 --- a/html/enable.postscreen.html +++ b/html/enable.postscreen.html @@ -20,6 +20,7 @@ +

Disable postscreen service

+

If your iRedMail already have postscreen service enabled, it's easy to disable +it by following steps below.

+ +
#smtp      inet  n       -       -       -       -       smtpd
+smtp      inet  n       -       -       -       1       postscreen
+smtpd     pass  -       -       n       -       -       smtpd
+
+ + +
smtp      inet  n       -       -       -       -       smtpd
+#smtp      inet  n       -       -       -       1       postscreen
+#smtpd     pass  -       -       n       -       -       smtpd
+
+ +

See Also

If you don't want to use postscreen service, you can enable DNSBL service instead, it helps a lot too, but less effective than postscreen service.

diff --git a/html/enable.smtp.auth.on.port.25.html b/html/enable.smtp.auth.on.port.25.html index d12a48f7..15be10d0 100644 --- a/html/enable.smtp.auth.on.port.25.html +++ b/html/enable.smtp.auth.on.port.25.html @@ -32,6 +32,7 @@ connection, you may try another tutorial instead: Allow internal network devices to send email with insecure connection