From f81da93be521308526c2b67f412b12e647fb1c87 2020-12-22 20:32:54 From: Branko Majic Date: 2020-12-22 20:32:54 Subject: [PATCH] MAR-175: Add the inet_interfaces and inet_protocols option to mail_forwarder Postfix configuration (sync with current Debian Buster stock configuration). --- diff --git a/docs/releasenotes.rst b/docs/releasenotes.rst index 564da60edbc393ee68ff7cf49cefc69f7335c7da..99c60223fe324abe521f896ca9768f781639b3e7 100644 --- a/docs/releasenotes.rst +++ b/docs/releasenotes.rst @@ -157,6 +157,9 @@ upgrade to Python 3.x, dropping support for Python 2.7. limit for the SMTP server to accept via ``mail_message_size_limit`` role parameter. + * Mail server configuration has been slightly updated to better + match what is currently the defaults in Debian Stretch. + * ``mail_server`` role * The role now supports specifying the maximum mail message size diff --git a/roles/mail_forwarder/templates/main.cf.j2 b/roles/mail_forwarder/templates/main.cf.j2 index 6322eb1b18acb175035d1228c3d24d6865fc3b8f..7decd6e798f338efc12b5839f872fbc2b50c5df4 100644 --- a/roles/mail_forwarder/templates/main.cf.j2 +++ b/roles/mail_forwarder/templates/main.cf.j2 @@ -43,6 +43,8 @@ mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 mailbox_command = procmail -a "$EXTENSION" mailbox_size_limit = 0 recipient_delimiter = + +inet_interfaces = all +inet_protocols = all # Fall-back to using native lookups (/etc/hosts etc) if DNS lookup fails. Useful # for local overrides of mail servers.