Search found 2 matches

by redbaron
26 Jan 2016, 23:56
Forum: General Discussion (csf)
Topic: csf custom regex not working
Replies: 6
Views: 6617

Re: csf custom regex not working

Regex was incorrect. If anybody cares, the proper solution is: if (($lgfile eq $config{CUSTOM1_LOG}) and ($line =~/\S+ \S+ Authentication failed for user "\S+" from (\S+)/)) { return ("Failed pmta login from",$1,"pmtalogin","3","2525","5");...
by redbaron
26 Jan 2016, 21:22
Forum: General Discussion (csf)
Topic: csf custom regex not working
Replies: 6
Views: 6617

csf custom regex not working

I'm trying to get this regex working properly and having no luck at doing so. The logfile looks like this: 2016-01-26 15:33:19 Authentication failed for user "mrfakeuser" from 126.16.117.42 In /etc/csf/csf.conf I've set: CUSTOM1_LOG = "/var/log/pmta/log" In /etc/csf/regex.custom....