diff --git a/postfix/templates/master.cf.j2 b/postfix/templates/master.cf.j2
index 87d6bb458815e3976ee66a9fc211f94a9b5505e3..dbd62667c2a55e6af22a531405949dcbfd170492 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