From b6d6c4c38ccb12094ac60f525ebec1fe6646bccc Mon Sep 17 00:00:00 2001
From: Lars Beckers <lars.beckers@rwth-aachen.de>
Date: Thu, 21 Oct 2021 21:30:52 +0200
Subject: [PATCH] postfix: add fsmpi smtp mynetworks exception

---
 postfix/templates/master.cf.j2 | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/postfix/templates/master.cf.j2 b/postfix/templates/master.cf.j2
index 87d6bb4..dbd6266 100644
--- a/postfix/templates/master.cf.j2
+++ b/postfix/templates/master.cf.j2
@@ -23,6 +23,9 @@ dnsblog   unix  -       -       y       -       0       dnsblog
 tlsproxy  unix  -       -       y       -       0       tlsproxy
 {% else %}
 smtp     inet  n       -       y       -       -       smtpd
+{% if postfix_fsmpi|default(false) %}
+  -o smtpd_sender_restrictions=permit_mynetworks,reject_sender_login_mismatch
+{% endif %}
 {% endif %}
 {% if postfix_enable_submission %}
 submission inet n       -       y       -       -       smtpd
-- 
GitLab