From bae96caef73660f2f8b2a28f2319a07b5a6733f3 Mon Sep 17 00:00:00 2001 From: phil Date: Wed, 14 Jun 2023 17:00:42 +0200 Subject: [PATCH] Run postmap on sasl password file --- tasks/postfix.yml | 1 + templates/postfix/main.cf.j2 | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/postfix.yml b/tasks/postfix.yml index 9c41841..5a627e7 100644 --- a/tasks/postfix.yml +++ b/tasks/postfix.yml @@ -70,6 +70,7 @@ - file: relay_checks - file: sender_canonical - file: sender_checks + - file: smtp_sasl_auth_password - file: transport_relay - name: "Postfix | Create dhparam file" diff --git a/templates/postfix/main.cf.j2 b/templates/postfix/main.cf.j2 index 6eabc04..4e9d952 100644 --- a/templates/postfix/main.cf.j2 +++ b/templates/postfix/main.cf.j2 @@ -160,8 +160,7 @@ smtpd_sasl_exceptions_networks = {{ postfix_smtpd_sasl_exceptions_networks | joi ### SMTP Auth client side smtp_sasl_auth_enable = yes smtp_sasl_auth_soft_bounce = no -smtp_sasl_password_maps = - cdb:{{ postfix_conf_dir }}/smtp_sasl_auth_password_maps +smtp_sasl_password_maps = cdb:{{ postfix_conf_dir }}/smtp_sasl_auth_password_maps smtp_sasl_security_options = noanonymous {% endif %}