Aaron Krohn

Initial config;

[ssh-iptables]
enabled = true
filter = sshd
action = iptables[name=SSH, port=ssh, protocol=tcp]
sendmail-whois[name=SSH, dest=root, sender=fail2ban@onnix.io]
logpath = /var/log/secure
maxretry = 5
[postfix-iptables]
enabled = true
filter = postfix
action = iptables[name=POSTFIX, port=smtp,465,submission, protocol=tcp]
sendmail-whois[name=POSTFIX, dest=root, sender=fail2ban@onnix.io]
logpath = /var/log/maillog
maxretry = 3
[postfix-rbl-iptables]
enabled = true
filter = postfix-rbl
action = iptables[name=POSTFIX-RBL, port=smtp,465,submission, protocol=tcp]
sendmail-whois[name=POSTFIX-RBL, dest=root, sender=fail2ban@onnix.io]
logpath = /var/log/maillog
maxretry = 3
[postfix-sasl-iptables]
enabled = true
filter = postfix-sasl
action = iptables[name=POSTFIX-SASL, port=smtp,465,submission, protocol=tcp]
sendmail-whois[name=POSTFIX-SASL, dest=root, sender=fail2ban@onnix.io]
logpath = /var/log/maillog
maxretry = 3
[dovecot-iptables]
enabled = true
filter = dovecot
action = iptables[name=DOVECOT, port=pop3,pop3s,imap,imaps,submission,465,sieve, protocol=tcp]
sendmail-whois[name=DOVECOT, dest=root, sender=fail2ban@onnix.io]
logpath = /var/log/maillog
maxretry = 3
... ...