Enable postscreen service

Attention

Check out the lightweight on-premises email archiving software developed by iRedMail team: Spider Email Archiver.

WARNING: With postscreen service enabled, your users must use port 587 (TLS) or 465 (SSL) to send email, port 25 will be used by postscreen service to accept emails sent from other mail servers (not submitted by end users).

Enable postscreen service

iRedMail ships a script to enable postscreen. You can enable it with shell commands below:

wget https://github.com/iredmail/iRedMail/raw/master/tools/enable_postscreen.sh
bash enable_postscreen.sh

That's all.

Important notes:

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.

References