Disabling email alerts from LFD !

LFD ( login failure daemon ) which comes along with the firewall CSF, is a process which runs in the background and that scans for the server logs periodically to find any suspicious activities, process, login attempts etc.

You might receive Lfd excessive resource usage alert which happens when a particular task or process consumes more than an allocated value of system memory or when it runs in the background beyond a particular time-frame. In a bottle neck’d server, where system memory is almost utilized and the resources are consumed equally, you might keep on receiving these alerts which is a real frustration. You can edit the csf config file at /etc/csf/csf.conf to change the settings.

# vi /etc/csf/csf.conf

^ after opening the file, find for the variables – PT_USERMEM and PT_USERTIME. Set those variables to 0 to disable the feature of alerting the user when the limit of memory/time is exceeded by a user/process.

– Once the csf config file is saved, restart csf using # csf -r , also dont forget to restart lfd using # service lfd restart