From 91d5736c125a0d9db0a688e928bc17db2afaec82 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Tue, 26 Mar 2013 09:40:04 -0400 Subject: [PATCH] ENH: postfix filter -- react also on (450 4.7.1) with empty from/to. fixes #126 --- config/filter.d/postfix.conf | 1 + testcases/files/logs/postfix | 3 +++ 2 files changed, 4 insertions(+) create mode 100644 testcases/files/logs/postfix diff --git a/config/filter.d/postfix.conf b/config/filter.d/postfix.conf index 8db7faee..d2dc4a0c 100644 --- a/config/filter.d/postfix.conf +++ b/config/filter.d/postfix.conf @@ -15,6 +15,7 @@ # Values: TEXT # failregex = reject: RCPT from (.*)\[\]: 554 + reject: RCPT from (.*)\[\]: 450 4\.7\.1 : Helo command rejected: Host not found; from=<> to=<> proto=ESMTP helo= *$ # Option: ignoreregex # Notes.: regex to ignore. If this regex matches, the line is ignored. diff --git a/testcases/files/logs/postfix b/testcases/files/logs/postfix new file mode 100644 index 00000000..28ff95a4 --- /dev/null +++ b/testcases/files/logs/postfix @@ -0,0 +1,3 @@ +# per https://github.com/fail2ban/fail2ban/issues/125 +# and https://github.com/fail2ban/fail2ban/issues/126 +Feb 21 09:21:54 xxx postfix/smtpd[14398]: NOQUEUE: reject: RCPT from example.com[192.0.43.10]: 450 4.7.1 : Helo command rejected: Host not found; from=<> to=<> proto=ESMTP helo=