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 :)