From 2b328dc764c0345f1e2d7cbcdf592ebb1fe7a6c4 Mon Sep 17 00:00:00 2001 From: Jeremy Lecour Date: Fri, 12 Feb 2021 14:10:04 +0100 Subject: [PATCH] postfix: add smtpd_relay_restrictions in configuration --- CHANGELOG.md | 1 + postfix/templates/evolinux_main.cf.j2 | 2 ++ postfix/templates/packmail_main.cf.j2 | 1 + 3 files changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7f173d1e..ddfb5834 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ The **patch** part changes incrementally at each release. * apache: new variables for logrotate + server-status * nginx: add access to server status on default VHost +* postfix: add smtpd_relay_restrictions in configuration ### Changed diff --git a/postfix/templates/evolinux_main.cf.j2 b/postfix/templates/evolinux_main.cf.j2 index b4499958..98b58a71 100644 --- a/postfix/templates/evolinux_main.cf.j2 +++ b/postfix/templates/evolinux_main.cf.j2 @@ -20,6 +20,8 @@ smtp_tls_protocols=!SSLv2,!SSLv3 smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache smtp_tls_loglevel = 1 +smtpd_relay_restrictions = permit_mynetworks defer_unauth_destination + {% if postfix_slow_transport_include == True %} # Slow transports configuration minimal_backoff_time = 2h diff --git a/postfix/templates/packmail_main.cf.j2 b/postfix/templates/packmail_main.cf.j2 index bee7fe53..d90f6ae9 100644 --- a/postfix/templates/packmail_main.cf.j2 +++ b/postfix/templates/packmail_main.cf.j2 @@ -384,6 +384,7 @@ strict_rfc821_envelopes = yes #par defaut, = yes #smtpd_reject_unlisted_recipient = +smtpd_relay_restrictions = permit_mynetworks defer_unauth_destination ####################### # Section : Chiffrement