commit eae163eec8080075689c7c4be4ac475e1a1f5301
Author: Nicolas Chauvet <kwizart(a)gmail.com>
Date: Fri Feb 15 17:05:13 2019 +0100
update main.cf default
roles/base/files/postfix/main.cf/main.cf | 20 +++++++++++++++-----
1 files changed, 15 insertions(+), 5 deletions(-)
---
diff --git a/roles/base/files/postfix/main.cf/main.cf
b/roles/base/files/postfix/main.cf/main.cf
index c77ae28..4092834 100644
--- a/roles/base/files/postfix/main.cf/main.cf
+++ b/roles/base/files/postfix/main.cf/main.cf
@@ -1,4 +1,3 @@
-# "false"
# Global Postfix configuration file. This file lists only a subset
# of all parameters. For the syntax, and for a complete parameter
# list, see the postconf(5) manual page (command: "man 5 postconf").
@@ -11,6 +10,8 @@
# For best results, change no more than 2-3 parameters at a time,
# and test if Postfix still works after every change.
+# Custom rules
+
# SOFT BOUNCE
#
# The soft_bounce parameter provides a limited safety net for
@@ -42,6 +43,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
@@ -313,8 +320,8 @@ unknown_local_recipient_reject_code = 550
#relayhost = [mailserver.isp.tld]
#relayhost = uucphost
#relayhost = [an.ip.add.ress]
-relayhost = [smtp-relay]
+relayhost = [smtp-relay]
# REJECTING UNKNOWN RELAY USERS
#
@@ -673,11 +680,14 @@ 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
+readme_directory = /usr/share/doc/postfix-2.10.1/README_FILES
+
+# Enable IPv4, and IPv6 if supported
+inet_protocols = ipv4
# add this to new postfix to get it to add proper message-id and other
# headers to outgoing emails via the gateway.
@@ -687,4 +697,4 @@ smtpd_relay_restrictions = permit_mynetworks,
reject_unauth_destination
message_size_limit = 20971520
-#inet_protocols = ipv4
+