Fail2Ban SASLfilter丢失login失败

我在我的邮件服务器上使用了fail2ban 。 我今天早上发现,有大约5000次失败的login尝试(在1个小时的过程中)通过SMTP没有被我的saslfilter拿起。 以下是/var/log/mail.log中的一个条目示例

Jan 25 04:39:56 ***** postfix/smtpd[23828]: warning: 114-32-231-17.HINET-IP.hinet.net[114.32.231.17]: SASL LOGIN authentication failed: authentication failure 

这是我的(未修改的)fail2ban的saslfilter定义:

 # Fail2Ban configuration file # # Author: Yaroslav Halchenko # # $Revision: 728 $ # [Definition] # Option: failregex # Notes.: regex to match the password failures messages in the logfile. The # host must be matched by a group named "host". The tag "<HOST>" can # be used for standard IP/hostname matching and is only an alias for # (?:::f{4,6}:)?(?P<host>[\w\-.^_]+) # Values: TEXT # failregex = (?i): warning: [-._\w]+\[<HOST>\]: SASL (?:LOGIN|PLAIN|(?:CRAM|DIGEST)-MD5) authentication failed(: [A-Za-z0-9+/]*={0,2})?$ # Option: ignoreregex # Notes.: regex to ignore. If this regex matches, the line is ignored. # Values: TEXT # ignoreregex = 

任何人都可以推荐一个改进的正则expression式,也会抓到这个logging?

定义另一个failregex

 (?i): warning: [-._\w]+\[<HOST>\]: SASL (?:LOGIN|PLAIN|(?:CRAM|DIGEST)-MD5) authentication failed(:.*)$ 

我用fail2ban-regextesting了这个正则expression式,并且正在工作。