Source

iredmail / iRedMail / functions / fail2ban.sh

Diff from to

File iRedMail/functions/fail2ban.sh

 #               sendmail-whois[name=ssh, dest=root, sender=fail2ban@mail.com]
 logpath     = ${FAIL2BAN_SSHD_LOGFILE}
 maxretry    = 5
-#ignoreip    = 127.0.0.1
+#ignoreip    = ${LOCAL_ADDRESS}
 
 [roundcube-iredmail]
 enabled     = true
 findtime    = 3600
 maxretry    = 5
 bantime     = 3600
-ignoreip    = 127.0.0.1
+ignoreip    = ${LOCAL_ADDRESS}
 
 [dovecot-iredmail]
 enabled     = true
 maxretry    = 5
 findtime    = 300
 bantime     = 3600
-ignoreip    = 127.0.0.1
+ignoreip    = ${LOCAL_ADDRESS}
 
 [postfix-iredmail]
 enabled     = true
 logpath     = ${MAILLOG}
 bantime     = 3600
 maxretry    = 5
-ignoreip    = 127.0.0.1
+ignoreip    = ${LOCAL_ADDRESS}
 EOF
 
     ECHO_DEBUG "Create filter: ${FAIL2BAN_FILTER_DIR}/${FAIL2BAN_FILTER_ROUNDCUBE}.conf."