mirror of
https://github.com/chatmail/relay.git
synced 2026-05-14 18:04:38 +00:00
postfix: require that login matches envelope FROM
Testing that envelope FROM matches From: header already happens in filtermail and tested with `test_reject_forged_from`. The most important part here is `reject_sender_login_mismatch` check documented in <https://www.postfix.org/postconf.5.html#reject_sender_login_mismatch>.
This commit is contained in:
@@ -45,3 +45,7 @@ inet_protocols = all
|
||||
|
||||
virtual_transport = lmtp:unix:private/dovecot-lmtp
|
||||
virtual_mailbox_domains = {{ config.mail_domain }}
|
||||
|
||||
mua_client_restrictions = permit_sasl_authenticated, reject
|
||||
mua_sender_restrictions = reject_sender_login_mismatch, permit_sasl_authenticated, reject
|
||||
mua_helo_restrictions = permit_mynetworks, reject_invalid_helo_hostname, reject_non_fqdn_helo_hostname, permit
|
||||
|
||||
Reference in New Issue
Block a user