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
Step 2. Navigate to “ConfigServer Security & Firewall“
Step 3. Under the CSF section click on “Firewall Configuration“
Step 4. Search for “LF_EMAIL_ALERT” and change it from “On” to “Off”
Step 5. Scroll down to the bottom and click on “Change” button to save changes
Step 6. Click on the “Restart csf+lfd” button to restart CSF in order for the changes to take effect
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