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:
- From WHM > ConfigServer Security & Firewall
- From the Terminal (SSH)
Disable all cPanel LFD alerts from WHM
Step 1. Login to WHM
![WHM login page WHM login page](https://i0.wp.com/pcx3.com/wp-content/uploads/2021/04/image-1.png?resize=415%2C371&ssl=1)
Step 2. Navigate to “ConfigServer Security & Firewall“
![ConfigServer Security & Firewall ConfigServer Security & Firewall](https://i0.wp.com/pcx3.com/wp-content/uploads/2021/04/image.png?resize=273%2C276&ssl=1)
Step 3. Under the CSF section click on “Firewall Configuration“
![Firewall Configuration ConfigServer Security & Firewall Firewall Configuration ConfigServer Security & Firewall](https://i0.wp.com/pcx3.com/wp-content/uploads/2021/04/image-2.png?resize=736%2C395&ssl=1)
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](https://i0.wp.com/pcx3.com/wp-content/uploads/2021/04/image-4.png?resize=693%2C294&ssl=1)
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](https://i0.wp.com/pcx3.com/wp-content/uploads/2021/04/image-6.png?resize=736%2C220&ssl=1)
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](https://i0.wp.com/pcx3.com/wp-content/uploads/2021/04/image-7.png?resize=488%2C253&ssl=1)
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:
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