add compatibility_level

This commit is contained in:
Ludovic Cartier 2024-12-12 16:53:04 +01:00
parent 5fd878b1f5
commit 9170970a29
2 changed files with 4 additions and 1 deletions

2
defaults/main.yml Normal file
View File

@ -0,0 +1,2 @@
---
postfix_compatibility_level: '3.6'

View File

@ -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 %}