From f133b18dbade93aae9789fb25ad7a4894929d37b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=B6rg=20Sachse?= <joerg.sachse@slub-dresden.de>
Date: Thu, 1 Aug 2024 14:55:20 +0200
Subject: [PATCH] fix: add 'smtpd_relay_restrictions' parameter to the Postfix
 config

---
 tasks/configure_postfix.yml | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tasks/configure_postfix.yml b/tasks/configure_postfix.yml
index 20a8af9..67ff479 100644
--- a/tasks/configure_postfix.yml
+++ b/tasks/configure_postfix.yml
@@ -8,4 +8,7 @@
     block: |
       # non-default
       mydomain = {{ ansible_domain if ansible_domain else 'localdomain' }}
+      smtpd_recipient_restrictions =
+      # smtpd_relay_restrictions = permit_mynetworks, permit_sasl_authenticated, defer_unauth_destination    # DEFAULT according to `man 5 postconf`
+      smtpd_relay_restrictions = permit_mynetworks, permit_sasl_authenticated, defer_unauth_destination
   notify: restart postfix
-- 
GitLab