diff --git a/defaults/main.yml b/defaults/main.yml new file mode 100644 index 0000000..1698072 --- /dev/null +++ b/defaults/main.yml @@ -0,0 +1,2 @@ +--- +postfix_compatibility_level: '3.6' diff --git a/templates/main.cf.j2 b/templates/main.cf.j2 index a2a8460..8d700a5 100644 --- a/templates/main.cf.j2 +++ b/templates/main.cf.j2 @@ -1,4 +1,6 @@ # {{ ansible_managed }} +compatibility_level= {{ postfix_compatibility_level }} + # See /usr/share/postfix/main.cf.dist for a commented, more complete version # Debian specific: Specifying a file name will cause the first @@ -44,7 +46,6 @@ home_mailbox = / mailbox_size_limit = 0 #mailbox_command = /usr/bin/procmail -f- -a $USER -compatibility_level=2 smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination {% if postfix_sender_relay is defined %}