Changes

From SME Server
Jump to navigationJump to search
706 bytes added ,  16:30, 22 June 2015
Line 314: Line 314:  
  action  = smeserver-iptables[bantime=604800]
 
  action  = smeserver-iptables[bantime=604800]
 
           smeserver-sendmail[name="Recidive",dest=root]
 
           smeserver-sendmail[name="Recidive",dest=root]
 +
 +
 +
=== Testing new regex ===
 +
You can test new regex - notes from here http://bugs.contribs.org/show_bug.cgi?id=8955
 +
 +
fail2ban-regex [LOG] [REGEX]
 +
 +
You can also test the actual conf files as follows
 +
 +
fail2ban-regex /var/log/qpsmtpd/current /etc/fail2ban/filter.d/qpsmtpd.conf
 +
 +
Note that some characters such as ` may need escaping on the command line like this \` but do not need escaping in the conf files
 +
 +
e.g From qpsmptd.conf file this works in the conf file
 +
 +
^\s*\d+\s*logging::logterse plugin \(deny\): ` <HOST>\s*.*90\d.*msg denied before queued$
 +
 +
However, on the command line it needs writing like this
 +
 +
^\s*\d+\s*logging::logterse plugin \(deny\): \` <HOST>\s*.*90\d.*msg denied before queued$
 +
     

Navigation menu