Skip to content

Commit

Permalink
ncm-postfix: add support for smtpd_relay_restrictions
Browse files Browse the repository at this point in the history
  • Loading branch information
wpoely86 committed Aug 19, 2024
1 parent 059e0e5 commit 75c59b8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions ncm-postfix/src/main/pan/components/postfix/schema.pan
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions ncm-postfix/src/main/resources/main.tt
Original file line number Diff line number Diff line change
Expand Up @@ -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 -%]
Expand Down

0 comments on commit 75c59b8

Please sign in to comment.