Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't individually mail all fail2ban actions #124

Merged
merged 1 commit into from
Jan 6, 2014
Merged

Don't individually mail all fail2ban actions #124

merged 1 commit into from
Jan 6, 2014

Conversation

markpasc
Copy link
Contributor

@markpasc markpasc commented Jan 4, 2014

As configured, every ban against the main fail2ban jails (sshd, apache, postfix) is individually mailed to the admin_email address. Each jail is also enumerated in ten “stopped”/“started” emails whenever fail2ban is restarted. By using the action_ shortcut instead of action_mwl, the mail-whois-lines action is not invoked and no individual email is sent.

As the bans are still logged, the results are rolled up into the Logwatch email instead, and sent once together with all the other Logwatch notices.

This is the change I made to address issue #98, but I'm no expert so there might be a better method.

Don't mail them individually to the destemail. The destemail setting is thus no
longer used, but let's set it anyway to be clear where it will mail if you
change the action back.
lukecyca added a commit that referenced this pull request Jan 6, 2014
Don't individually mail all fail2ban actions
@lukecyca lukecyca merged commit 3ca29de into sovereign:master Jan 6, 2014
@lukecyca
Copy link
Contributor

lukecyca commented Jan 6, 2014

Thanks!

@lukecyca lukecyca mentioned this pull request Jan 6, 2014
@markpasc markpasc deleted the no-fail2ban-mail branch January 16, 2014 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants