From 5497d962f1f5790763b4facd89fa3846e4665bf1 Mon Sep 17 00:00:00 2001 From: phil Date: Mon, 19 Jun 2023 21:17:59 +0200 Subject: [PATCH] Add respectful_logging --- templates/postfix/main.cf.j2 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/templates/postfix/main.cf.j2 b/templates/postfix/main.cf.j2 index 5debdb6..98b1ceb 100644 --- a/templates/postfix/main.cf.j2 +++ b/templates/postfix/main.cf.j2 @@ -5,8 +5,11 @@ smtpd_banner = {{ postfix_smtpd_banner }} {% endif %} +### Logging +{% if (ansible_facts.packages['postfix'][0].version) >= "3.6" %} +respectful_logging = yes +{% endif %} {% if postfix_debug_peer_list is defined %} -### Debug Logging debug_peer_list = {{ postfix_debug_peer_list | join(', ') }} {% endif %}