Linux/Mailserver/Fail2ban: Difference between revisions

From Wiki
(Die Seite wurde neu angelegt: „== /etc/fail2ban/jail.local == <pre> [postfix] enabled = true maxretry = 3 bantime = 21600 findtime = 3600 port = smtp,465,submission logpath = /var/log…“)
 
 
Line 18: Line 18:
<pre>
<pre>
  ^%(__prefix_line)slost connection after (?:AUTH|UNKNOWN) from \S+\[<HOST>\]$
  ^%(__prefix_line)slost connection after (?:AUTH|UNKNOWN) from \S+\[<HOST>\]$
</per>
</pre>

Latest revision as of 22:06, 31 August 2016

/etc/fail2ban/jail.local

[postfix]
enabled  = true
maxretry = 3
bantime  = 21600
findtime = 3600
port     = smtp,465,submission
logpath  = /var/log/mail/mail.log
           /var/log/mail/mail.err



/etc/fail2ban/filter.d/postfix.local

  • add:
 ^%(__prefix_line)slost connection after (?:AUTH|UNKNOWN) from \S+\[<HOST>\]$