How to Disable All LFD Emails

This article provides a guide demonstrating how to disable all LFD emails.

How to Disable All LFD Emails

To disable all LFD emails, follow the steps below:

  1. Login via SSH as root user.
  2. Open csf configuration file and search for LF_PERMBLOCK_ALERT and set the value with 0:
    # nano /etc/csf/csf.conf
    
    LF_EMAIL_ALERT =0
  3. Run the following commands:
    echo 'devnull: /dev/null' >> /etc/aliases
    sed 's/To\: root/To\: devnull/g' -i /etc/csf/alerts/*
    systemctl restart csf
    systemctl restart lfd

Conclusion

You now know how to disable all LFD emails.

  • csf, lfd
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to Block Specific Countries Using CSF Firewall

This article provides a guide for how to block countries using CSF Firewall. How to Block...

Resolved: lfd on <hostname>: SYSLOG Check Failed

This article provides a guide to solve error warnings: "lfd on <hostname>: SYSLOG Check...

Install ConfigServer Firewall (CSF) in cPanel Server

This article provides a guide to install ConfigServer Firewall (CSF) in cPanel Server. This guide...

CSF Firewall CLI Guides

This article provides useful information for managing CSF firewall CLI. ConfigServer Security...

Suppress CSF LFD Warnings for a Specific Process

This article provides a guide to suppress CSF LFD warnings for a specific process. CSF/LFD...