Stop lfd from emailling blockings

cDGo

Verified User
Joined
Sep 21, 2012
Messages
84
Hi,

Is there a way to stop these mails from being send?

Time: Thu Mar 9 08:18:12 2023 +0100
IP: xxx.xxx.xxx (US/United States/-)
Failures: 5 (sshd)
Interval: 3600 seconds
Blocked: Permanent Block [LF_SSHD]
 
09-03-2023 16-57-01.jpg
 
Hi Zhenyapan,

Thank you for your answer, but than I will not get any other messages like "servers xxx is down" either.
I just do not want to receive the BFA emails.
 
hide_brute_force_notifications=1 was already in directadmin.conf
I guess that these emails are send by csf/lfd and not by the BFA module.
 
Is there a way to stop these mails from being send?
Yes they are indeed from CSF.

Edit /etc/csf/csf.conf and set:
LF_PERMBLOCK_ALERT = "1"
to
LF_PERMBLOCK_ALERT = "0"

you can also check other alerts and email_alert settings you want to change.
 
Last edited:
Hi Richard,

Thanks!
I changed those, and see what happens.
 
Hi Richard,

Yes I did, but still the messages kept coming in.
I even rebooted the server, and still am receiving the emails
 
Hello,

Is there a way to stop these mails from being send?

In order to stop alerts from CSF/LFD the following options should be set to "0":

Code:
LF_PERMBLOCK_ALERT = "1"
LF_NETBLOCK_ALERT = "1"
LF_EMAIL_ALERT = "1"
LF_SSH_EMAIL_ALERT = "1"
LF_SU_EMAIL_ALERT = "1"
LF_WEBMIN_EMAIL_ALERT = "1"
LF_CONSOLE_EMAIL_ALERT = "1"
LF_DISTFTP_ALERT = "1"
LF_DISTSMTP_ALERT = "1"
LT_EMAIL_ALERT = "1"
RT_RELAY_ALERT = "1"
RT_AUTHRELAY_ALERT = "1"
RT_LOCALRELAY_ALERT = "1"
RT_LOCALHOSTRELAY_ALERT = "1"
CT_EMAIL_ALERT = "1"
PT_USERKILL_ALERT = "1"
PS_EMAIL_ALERT = "1"
RECAPTCHA_ALERT = "1"

then CSF/LFD should be restarted.
 
Back
Top