From 9170970a29d903d6e408e1a191b6727dff32b90f Mon Sep 17 00:00:00 2001 From: Ludovic Cartier Date: Thu, 12 Dec 2024 16:53:04 +0100 Subject: [PATCH] add compatibility_level --- defaults/main.yml | 2 ++ templates/main.cf.j2 | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 defaults/main.yml 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 %}