Fail2Ban Email Notifications and Frequency

VitalPBX Community Support General Discussion Fail2Ban Email Notifications and Frequency

  • Post
    InTeleSync
    Participant

    Is there a way to group or consolidate the myriad of email notifications that fail2ban will send out each and every time a service starts or stops?

    As it is, stopping and starting either just the fail2ban service or the entire VitalPBX service will result in literally dozens and dozens of email notifications. Would like to consolidate those into a single email that perhaps monitors the log and sends a single message with contents every 5 minutes should there be a change in that log.

     

    0
Viewing 2 replies - 1 through 2 (of 2 total)
  • Replies
    Up
    0
    Down

    Let us check if this is possible on Fail2ban.

    0
    InTeleSync
    Participant
    Up
    0
    Down

    A quick and dirty way to eliminate the aggravating email notifications on system stops and starts… Create the file /etc/fail2ban/action.d/sendmail-common.local file with:

    [Definition]
    actionstart =
    actionstop =

    This overrides the default actions which include sending the emails, but will survive future updates. Banned action emails will still go out.

     

    0
Viewing 2 replies - 1 through 2 (of 2 total)

Tagged: ,

  • You must be logged in to reply to this topic.