bundles/postfix: add feature to block email recipients
This commit is contained in:
parent
57c76e5eba
commit
ee58509e93
3 changed files with 28 additions and 0 deletions
3
bundles/postfix/files/blocked_recipients
Normal file
3
bundles/postfix/files/blocked_recipients
Normal file
|
@ -0,0 +1,3 @@
|
|||
% for address in sorted(blocked):
|
||||
${address} REJECT
|
||||
% endfor
|
|
@ -48,6 +48,8 @@ smtpd_client_restrictions = permit_mynetworks permit_sasl_authenticated
|
|||
smtpd_helo_required = yes
|
||||
smtpd_helo_restrictions = permit_mynetworks reject_invalid_helo_hostname
|
||||
smtpd_data_restrictions = reject_unauth_pipelining
|
||||
smtpd_recipient_restrictions = permit_mynetworks, check_recipient_access hash:/etc/postfix/blocked_recipients
|
||||
smtpd_relay_before_recipient_restrictions = yes
|
||||
|
||||
# generated using mozilla ssl generator, using "old" configuration.
|
||||
# we need this to support CentOS 7 systems, sadly ...
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue