7

I'm trying to build a filter myself using regex. This is a line i want to filter for example:

Aug 30 11:07:38 *** postfix/smtpd[17969]: connect from vps10685425.123-vps.co.uk[46.32.239.160]

An this is my RegEx currently:

^%(__prefix_line).*:.*connect from.*\[<HOST>\].*$
^%(__prefix_line)s\w{14}:.*connect from[-._\w]+\[<HOST>\].*$

Both lines tell me

server.failregex.RegexException: No 'host' group in '/etc/fail2ban/filter.d/smtp-auth.conf'

Why does fail2ban fail to recognize the host group in my regex? what am I doing wrong here?

Thanks in advance :)

mike.b93
  • 293
  • 2
  • 4
  • 11

1 Answers1

4

OK, abort mission. I'm the stupid one..

Got a Typo in my parameters... it is actually smtp_auth.conf not smtp-auth.conf

Sorry! Close this one and burry it deep -.-'

mike.b93
  • 293
  • 2
  • 4
  • 11
  • 3
    This actually helped me - the error message by fail2ban-regex does not explicitely say that the filter file does not exist, so I didn't notice at first that I uploaded the filter to the wrong server :-D – iquito Feb 26 '17 at 22:41