diff --git a/2.Common_services/8.Fail2ban/0_setup.py b/2.Common_services/8.Fail2ban/0_setup.py index 542437c8fe206b4add1927ea844aaf6975d3d72e..ac6c7ca2efe841e36a47a2d56291970ef3d9dc09 100644 --- a/2.Common_services/8.Fail2ban/0_setup.py +++ b/2.Common_services/8.Fail2ban/0_setup.py @@ -19,7 +19,7 @@ def setup(interactive=True): dir_path = utils.get_dir(__file__) action = 'action_mwl' if utils.get_conf('FAIL2BAN_SEND_EMAIL', '') != '0' else 'action_' sender = utils.get_conf('EMAIL_SENDER', 'root@localhost') - destemail = utils.get_conf('FAIL2BAN_DEST_EMAIL', 'root@localhost') + destemail = utils.get_conf('FAIL2BAN_DEST_EMAIL', '') or utils.get_conf('EMAIL_ADMINS', 'root@localhost') maxretry = utils.get_conf('FAIL2BAN_MAXRETRY', '6') bantime = utils.get_conf('FAIL2BAN_BANTIME', '30') cmds = [ diff --git a/global-conf.sh b/global-conf.sh index e64b548fe74940f592c1c8a0dbfb391a9ed42447..0b69557d71b9200377beabc15a0c5888f87886ef 100644 --- a/global-conf.sh +++ b/global-conf.sh @@ -106,10 +106,10 @@ BURP_CLIENT_NAME= BURP_CLIENT_MAIL_DEST='sysadmin@ubicast.eu' # -- Fail2ban specific settings -- -FAIL2BAN_SEND_EMAIL='1' -FAIL2BAN_DEST_EMAIL='sysadmin@ubicast.eu' -FAIL2BAN_MAXRETRY='6' -FAIL2BAN_BANTIME='30' +FAIL2BAN_SEND_EMAIL='0' +FAIL2BAN_DEST_EMAIL= +FAIL2BAN_MAXRETRY= +FAIL2BAN_BANTIME= # -- tmbackup.sh -- BACKUP_SERVER=''