Skip to content

Commit 68c80d6

Browse files
fix: restore user domain address verification
Address verification, removed in 1.7.0, is still useful to ensure that when an LDAP account is removed, Postfix handles Dovecot's error with a SMTP error, and doesn't bounce the message.
1 parent 889b39d commit 68c80d6

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

postfix/usr/local/bin/reload-config

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,12 @@ if [ -n "${POSTFIX_ORIGIN}" ]; then
4141
tmpl_virtual_mailbox_domains=${POSTFIX_ORIGIN}
4242
tmpl_virtual_mailbox_maps="inline:{{ vmail@${POSTFIX_ORIGIN} = vmail }}, "'proxy:ldap:$meta_directory/laddusers-origin.cf'
4343
tmpl_myorigin=${POSTFIX_ORIGIN}
44+
tmpl_verify_recipient_address="check_recipient_access inline:{{ ${POSTFIX_ORIGIN} = reject_unverified_recipient }}"
4445
else
4546
tmpl_virtual_mailbox_domains=
4647
tmpl_virtual_mailbox_maps=
4748
tmpl_myorigin='$myhostname'
49+
tmpl_verify_recipient_address=
4850
fi
4951

5052
tmpl_milters="${POSTFIX_MILTERS}"

postfix/usr/local/lib/templates/main.cf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ smtpd_relay_restrictions =
111111

112112
smtpd_recipient_restrictions =
113113
reject_non_fqdn_recipient,
114+
${tmpl_verify_recipient_address},
114115

115116
#
116117
# TLS configuration

0 commit comments

Comments
 (0)