Linux/Mailserver/Fail2ban

From Wiki
< Linux‎ | Mailserver
Revision as of 22:05, 31 August 2016 by Marcluer (talk | contribs) (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…“)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

/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>\]$
</per>