Disable email for certain alerts

Post Reply
ffeingol
Junior Member
Posts: 30
Joined: 07 Aug 2007, 23:13

Disable email for certain alerts

Post by ffeingol »

Hello,

We'd like to disable the email alerts for certain types of alerts. For example, we don't need an email when there is a POP/IMAP/SMTP login failure, as it's easy to search the logs for there.

Thanks!
Sergio
Junior Member
Posts: 1687
Joined: 12 Dec 2006, 14:56

Re: Disable email for certain alerts

Post by Sergio »

Access the account with webmail, in webmail on the front page enter into "Email Filters" and create there a rule to delete the emails that you don't want to receive.

Example:

SUBJECT CONTAINS
blocked

AND

BODY MATCHES REGEX
auth failed|Failed password for root|Incorrect authentication data

ACTIONS
Discard Message

You should know REGEX Notation to create your rules if you select "Matches REGEX.

So, the above rule means:
If Subject contains the word "blocked" and the body of the emails contains any of the following matches, delete the email.

Sergio
ffeingol
Junior Member
Posts: 30
Joined: 07 Aug 2007, 23:13

Re: Disable email for certain alerts

Post by ffeingol »

Hello,

Thanks for the suggestion. I'd rather not send them in the first place so our mail server does not have to process them.
Sergio
Junior Member
Posts: 1687
Joined: 12 Dec 2006, 14:56

Re: Disable email for certain alerts

Post by Sergio »

Ok, open your CSF Configuration and search for:

SECURITY WARNING
================
LF_EMAIL_ALERT

Sergio
Post Reply