Skip to content

Commit 831627e

Browse files
authored
Merge pull request #53 from rehanone/develop/fix-open-relay
Fix the postfix open relay issue caused by the updated postfix rules.
2 parents 34a8e93 + bf52efd commit 831627e

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

‎templates/postfix/main.cf‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,16 @@ smtpd_sender_restrictions =
6868
reject_unknown_sender_domain,
6969
permit
7070

71+
# Strict relay rules to close the open relay loophole:
72+
smtpd_relay_restrictions =
73+
reject_unauth_pipelining,
74+
permit_mynetworks,
75+
reject_unauth_destination
76+
7177
# Recipient restrictions:
7278
smtpd_recipient_restrictions =
73-
reject_unauth_pipelining,
7479
reject_non_fqdn_recipient,
7580
reject_unknown_recipient_domain,
76-
permit_mynetworks,
77-
reject_unauth_destination,
7881
{% if use_dqn %}
7982
# Add in dqn RBLs
8083
reject_rbl_client {{ env['POSTFIX_DQN_KEY'] }}.zen.dq.spamhaus.net=127.0.0.[2..11],

0 commit comments

Comments
 (0)