commit 153b6b7ed7a25899f70128dce809bc0304c827da
Author: Nicolas Chauvet <kwizart(a)gmail.com>
Date: Fri Feb 15 17:03:26 2019 +0100
Add mailman
roles/base/files/postfix/main.cf/main.cf.mailman | 24 ++++++++++++++-------
roles/base/files/postfix/main.cf/main.cf.smtp-mm | 9 ++-----
2 files changed, 19 insertions(+), 14 deletions(-)
---
diff --git a/roles/base/files/postfix/main.cf/main.cf.mailman
b/roles/base/files/postfix/main.cf/main.cf.mailman
index a5c158c..f36ec30 100644
--- a/roles/base/files/postfix/main.cf/main.cf.mailman
+++ b/roles/base/files/postfix/main.cf/main.cf.mailman
@@ -42,6 +42,12 @@ command_directory = /usr/sbin
#
daemon_directory = /usr/libexec/postfix
+# The data_directory parameter specifies the location of Postfix-writable
+# data files (caches, random numbers). This directory must be owned
+# by the mail_owner account (see below).
+#
+data_directory = /var/lib/postfix
+
# QUEUE AND PROCESS OWNERSHIP
#
# The mail_owner parameter specifies the owner of the Postfix queue
@@ -70,6 +76,9 @@ mail_owner = postfix
#myhostname = host.domain.tld
#myhostname = virtual.domain.tld
+
+smtp_helo_name = $myhostname
+
# The mydomain parameter specifies the local internet domain name.
# The default is to use $myhostname minus the first component.
# $mydomain is used as a default value for many other configuration
@@ -77,6 +86,8 @@ mail_owner = postfix
#
#mydomain = domain.tld
+mydomain =
rpmfusion.org
+
# SENDING MAIL
#
# The myorigin parameter specifies the domain that locally-posted
@@ -93,7 +104,6 @@ mail_owner = postfix
#myorigin = $myhostname
#myorigin = $mydomain
-mydomain =
rpmfusion.org
myorigin =
rpmfusion.org
# RECEIVING MAIL
@@ -315,8 +325,8 @@ unknown_local_recipient_reject_code = 550
#relayhost = [mailserver.isp.tld]
#relayhost = uucphost
#relayhost = [an.ip.add.ress]
-relayhost = [192.168.181.254]
+relayhost = [192.168.181.254]
# REJECTING UNKNOWN RELAY USERS
#
@@ -675,18 +685,16 @@ manpage_directory = /usr/share/man
# sample_directory: The location of the Postfix sample configuration files.
# This parameter is obsolete as of Postfix 2.1.
#
-sample_directory = /usr/share/doc/postfix-2.4.5/samples
+sample_directory = /usr/share/doc/postfix-2.10.1/samples
# readme_directory: The location of the Postfix README files.
#
-readme_directory = /usr/share/doc/postfix-2.4.5/README_FILES
-
-# add this to new postfix to get it to add proper message-id and other
-# headers to outgoing emails via the gateway.
+readme_directory = /usr/share/doc/postfix-2.10.1/README_FILES
+# Enable IPv4, and IPv6 if supported
+inet_protocols = ipv4
message_size_limit = 20971520
-#inet_protocols = ipv4
# Mailman, see MTA.rst
diff --git a/roles/base/files/postfix/main.cf/main.cf.smtp-mm
b/roles/base/files/postfix/main.cf/main.cf.smtp-mm
index adeda9a..e5db424 100644
--- a/roles/base/files/postfix/main.cf/main.cf.smtp-mm
+++ b/roles/base/files/postfix/main.cf/main.cf.smtp-mm
@@ -122,7 +122,6 @@ myorigin =
rpmfusion.org
#inet_interfaces = all
#inet_interfaces = $myhostname
#inet_interfaces = $myhostname, localhost
-
inet_interfaces = all
# The proxy_interfaces parameter specifies the network interface
@@ -258,7 +257,6 @@ unknown_local_recipient_reject_code = 550
#mynetworks_style = subnet
#mynetworks_style = host
-
# Alternatively, you can specify the mynetworks list by hand, in
# which case Postfix ignores the mynetworks_style setting.
#
@@ -501,8 +499,6 @@ recipient_delimiter = +
# To use the old cyrus deliver program you have to set:
#mailbox_transport = cyrus
-
-
# The fallback_transport specifies the optional transport in master.cf
# to use for recipients that are not found in the UNIX passwd database.
# This parameter has precedence over the luser_relay parameter.
@@ -685,11 +681,12 @@ manpage_directory = /usr/share/man
# sample_directory: The location of the Postfix sample configuration files.
# This parameter is obsolete as of Postfix 2.1.
#
-sample_directory = /usr/share/doc/postfix-2.5.6/samples
+sample_directory = /usr/share/doc/postfix-2.10.1/samples
# readme_directory: The location of the Postfix README files.
#
-readme_directory = /usr/share/doc/postfix-2.5.6/README_FILES
+readme_directory = /usr/share/doc/postfix-2.10.1/README_FILES
+
# Enable IPv4, and IPv6 if supported
inet_protocols = all