How to disable all cPanel LFD alerts

How to disable all cPanel LFD alerts

If clients are complaining for dozens of LFD alerts from their VPS’s running cPanel here is how to completely disable those email alerts.

Here are two ways to disable LFD alerts:

  1. From WHM > ConfigServer Security & Firewall
  2. From the Terminal (SSH)

Disable all cPanel LFD alerts from WHM

Step 1. Login to WHM

WHM login page
WHM login page

Step 2. Navigate to “ConfigServer Security & Firewall

ConfigServer Security & Firewall
ConfigServer Security & Firewall

Step 3. Under the CSF section click on “Firewall Configuration

Firewall Configuration ConfigServer Security & Firewall
Firewall Configuration ConfigServer Security & Firewall

Step 4. Search for “LF_EMAIL_ALERT” and change it from “On” to “Off”

LF_EMAIL_ALERT ConfigServer Security & Firewall
LF_EMAIL_ALERT ConfigServer Security & Firewall

Step 5. Scroll down to the bottom and click on “Change” button to save changes

Sve Changes for ConfigServer Security & Firewall
Sve Changes for ConfigServer Security & Firewall

Step 6. Click on the “Restart csf+lfd” button to restart CSF in order for the changes to take effect

Restart csf+lfd
Restart csf+lfd

Disable all cPanel LFD alerts from SSH

Step 1. Login to the server via SSH

Step 2. Open csf.conf file with your favourite editor and search for “LF_PERMBLOCK_ALERT” and set the value from 1 to 0.

# nano /etc/csf/csf.conf

LF_EMAIL_ALERT =0

Save the changes

Step 3. Now restart both CSF and LFD services in order for the changes to take effect.

# service csf restart

# service lfd restart

Disable selected cPanel LFD alerts

To only disable some specific email alerts edit the /etc/csf/csf.conf file and set per your needs:

See also  How to add Domainkeys for a Domain in cPanel

PT_USERMEM 0
PT_USERTIME 0
LF_INTEGRITY 0
PT_LIMIT 0
LF_EMAIL_ALERT Off
LF_PERMBLOCK_ALERT Off
LF_NETBLOCK_ALERT Off
LF_DISTFTP_ALERT Off
LF_DISTSMTP_ALERT Off
LT_EMAIL_ALERT Off
LF_QUEUE_ALERT 0
LF_SCRIPT_ALERT 0
PT_USERPROC 0
LF_SSH_EMAIL_ALERT Off
X_ARF Off
LF_SELECT Off
LF_WEBMIN_PERM 0
LF_SU_EMAIL_ALERT Off
LF_WEBMIN_EMAIL_ALERT Off
LF_APACHE_ERRPORT 0
LF_DISTFTP_PERM 0
LT_IMAPD 0
LF_CPANEL_ALERT Off PT_LOAD 0
CT_EMAIL_ALERT Off

whoami
Stefan Pejcic
Join the discussion

I enjoy constructive responses and professional comments to my posts, and invite anyone to comment or link to my site.