QUOTE:
Apr 21 15:23:44 mail postfix/smtpd[13516]: lost connection after AUTH from unknown[112.122.101.14]似乎是被鎖定 Sasl 攻擊了,由於之前已經有安裝 fail2ban,可以打開相關的 sasl 防護功能
Apr 21 15:23:44 mail postfix/smtpd[13516]: disconnect from unknown[112.122.101.14]
Apr 21 15:23:44 mail postfix/smtpd[13516]: connect from unknown[112.122.101.14]
Apr 21 15:23:44 mail postfix/smtpd[13516]: lost connection after AUTH from unknown[112.122.101.14]
Apr 21 15:23:44 mail postfix/smtpd[13516]: disconnect from unknown[112.122.101.14]
Apr 21 15:23:44 mail postfix/smtpd[13516]: connect from unknown[112.122.101.14]
Apr 21 15:23:45 mail postfix/smtpd[13516]: lost connection after AUTH from unknown[112.122.101.14]
Apr 21 15:23:45 mail postfix/smtpd[13516]: disconnect from unknown[112.122.101.14]
(1) add following section to the end of your /etc/fail2ban/jail.conf
QUOTE:
[postfix-auth](2) create new file /etc/fail2ban/filter.d/postfix.auth.conf
enabled = true
filter = postfix.auth
action = iptables-multiport[name=postfix, port="http,https,smtp,submission,pop3,pop3s,imap,imaps,sieve", protocol=tcp]
# sendmail[name=Postfix, dest=you@mail.com]
logpath = /var/log/mail.log
QUOTE:
[Definition](3) Restart fail2ban. Attacker will be blocked after five attempts.
failregex = lost connection after AUTH from (.*)\[<HOST>\]
ignoreregex =