Skip to content

Instantly share code, notes, and snippets.

@shoaibali
Created October 4, 2015 02:08
Show Gist options
  • Save shoaibali/98eb576f97a2d8b01c0d to your computer and use it in GitHub Desktop.
Save shoaibali/98eb576f97a2d8b01c0d to your computer and use it in GitHub Desktop.
/etc/fail2ban/jail.local
[pureftpd]
enabled = true
port = ftp
filter = pureftpd
logpath = /var/log/syslog
maxretry = 3
[dovecot-pop3imap]
enabled = true
filter = dovecot-pop3imap
action = iptables-multiport[name=dovecot-pop3imap, port="pop3,pop3s,imap,imaps", protocol=tcp]
logpath = /var/log/mail.log
maxretry = 5
[postfix-sasl]
enabled = true
port = smtp
filter = postfix-sasl
logpath = /var/log/mail.log
maxretry = 3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment