From 182ee5bbb2caddb15d62271b25568c655d24331b Mon Sep 17 00:00:00 2001 From: Ward Poelmans Date: Mon, 19 Aug 2024 08:09:20 +0200 Subject: [PATCH] ncm-postfix: add support for smtpd_relay_restrictions --- ncm-postfix/src/main/pan/components/postfix/schema.pan | 1 + ncm-postfix/src/main/resources/main.tt | 3 +++ 2 files changed, 4 insertions(+) diff --git a/ncm-postfix/src/main/pan/components/postfix/schema.pan b/ncm-postfix/src/main/pan/components/postfix/schema.pan index e2e387be20..a6cea2c795 100644 --- a/ncm-postfix/src/main/pan/components/postfix/schema.pan +++ b/ncm-postfix/src/main/pan/components/postfix/schema.pan @@ -507,6 +507,7 @@ type postfix_main = { "smtpd_recipient_restrictions" ? string[] "smtpd_reject_udicted_recipient" ? boolean "smtpd_reject_udicted_sender" ? boolean + "smtpd_relay_restrictions" ? string[] "smtpd_restriction_classes" ? string "smtpd_sasl_auth_enable" ? boolean "smtpd_sasl_authenticated_header" ? boolean diff --git a/ncm-postfix/src/main/resources/main.tt b/ncm-postfix/src/main/resources/main.tt index 1cf0be11d8..d1e86e3cf6 100644 --- a/ncm-postfix/src/main/resources/main.tt +++ b/ncm-postfix/src/main/resources/main.tt @@ -1315,6 +1315,9 @@ smtpd_recipient_restrictions = [%- smtpd_recipient_restrictions.join(", ") %] [% IF smtpd_reject_unlisted_sender.defined %] [% INCLUDE postfix/key_value_boolean.tt key="smtpd_reject_unlisted_sender" value=smtpd_reject_unlisted_sender joiner="=" bool_handler="postfix/yes_no_boolean.tt" %] [%- END -%] +[%- IF smtpd_relay_restrictions.defined %] +smtpd_relay_restrictions = [%- smtpd_relay_restrictions.join(", ") %] +[%- END -%] [%- IF smtpd_restriction_classes.defined %] smtpd_restriction_classes = [% smtpd_restriction_classes %] [%- END -%]