Talk:Postfix
From Fail2ban
Revision as of 05:37, 14 January 2008 by 168.132.10.250 (talk) (New page: A better regex, for capturing all 5xx (fatal) reject codes? <pre># regex to match reject codes beginning with 5 (fatal), # then digits 0 or 5, and then 0-4 # eg. 500, 502, 504, 550, 551,...)
A better regex, for capturing all 5xx (fatal) reject codes?
# regex to match reject codes beginning with 5 (fatal), # then digits 0 or 5, and then 0-4 # eg. 500, 502, 504, 550, 551, 553... failregex = reject: RCPT from (.*)\[<HOST>\]: 5[05][0-4]
I don't like blocking 4xx (try again) errors, but the regex could easily incorporate that too:
failregex = reject: RCPT from (.*)\[<HOST>\]: [45][05][0-4]
--Trix