Skip to content

Commit bd00800

Browse files
committed
enabled pre-smtp check with postscreen
1 parent c5b9566 commit bd00800

3 files changed

Lines changed: 14 additions & 2 deletions

File tree

postfix/conf.d/master.cf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,11 @@ retry unix - - n - - error
2929
rewrite unix - - n - - trivial-rewrite
3030
scache unix - - n - 1 scache
3131
showq unix n - n - - showq
32-
smtp inet n - n - - smtpd
32+
smtp inet n - n - 1 postscreen
33+
smtpd pass - - n - - smtpd
3334
smtp unix - - n - - smtp
3435
tlsmgr unix - - n 1000? 1 tlsmgr
36+
tlsproxy unix - - n - 0 tlsproxy
3537
trace unix - - n - 0 bounce
3638
verify unix - - n - 1 verify
3739
virtual unix - n n - - virtual
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
2+
postscreen_bare_newline_enable = yes
3+
postscreen_bare_newline_action = enforce
4+
5+
postscreen_greet_action = enforce
6+
7+
postscreen_non_smtp_command_enable = yes
8+
postscreen_non_smtp_command_action = enforce
9+
10+
postscreen_pipelining_enable = yes

postfix/templates/63-icf-recipient-restrictions.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ smtpd_recipient_restrictions =
1818
reject_rhsbl_sender your_DQS_key.zrd.dq.spamhaus.net=127.0.2.[2..24],
1919
reject_rhsbl_helo your_DQS_key.zrd.dq.spamhaus.net=127.0.2.[2..24],
2020
reject_rhsbl_reverse_client your_DQS_key.zrd.dq.spamhaus.net=127.0.2.[2..24],
21-
reject_rbl_client bl.spamcop.net,
21+
reject_rbl_client bl.spamcop.net=127.0.0.2,
2222
permit

0 commit comments

Comments
 (0)