Sample-jail.local

From Free Knowledge Base- The DUCK Project: information for everyone
Revision as of 18:57, 7 February 2014 by Admin (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
 [dovecot]
 enabled = true
 filter = dovecot
 action = iptables-multiport-tcp[name=dovecot, port="pop3,pop3s,imap,imaps", protocol=tcp] mail[name=dovecot, dest=root]</n
owiki>
  <nowiki># optionaly mail notification # mail[name=dovecot-pop3imap, dest=root@domain] # see /etc/fail2ban/action.d/ or Fail2Ban do
c 
 logpath = /var/log/maillog
 maxretry = 3
 findtime = 300
 bantime = 1800
 
 [postfix-sasl]
 enabled = true
 filter = postfix-sasl
 action = iptables-multiport-tcp[name=postfix, port="smtp,smtps", protocol=tcp] mail[name=postfix, dest=root]
 # optionaly mail notification # mail[name=dovecot-pop3imap, dest=root@domain] # see /etc/fail2ban/action.d/ or Fail2Ban do
c 
 logpath = /var/log/maillog
 maxretry = 3
 findtime = 300
 bantime = 1800
 protocol = tcp