Get the most out of your Centmin Mod LEMP stack
Become a Member

CSF Csf LF_ALERT_TO = "" empty but i am getting emails

Discussion in 'Other Centmin Mod Installed software' started by pamamolf, Apr 17, 2020.

  1. pamamolf

    pamamolf Well-Known Member

    4,125
    429
    83
    May 31, 2014
    Ratings:
    +841
    Local Time:
    7:17 AM
    Nginx-1.29.x
    MariaDB 10.6.x
    Hello :)

    On my csf config i have:
    Code:
    LF_ALERT_TO = ""
    But i am getting emails for root logins e.t.c like:

    lfd on server.mydomain.com: SSH login alert for user root e.t.c

    Also i don't have that file at all: /root/.forward

    How can i disable all csf emails?


    Thank you
     
  2. eva2000

    eva2000 Administrator Staff Member

    58,893
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    2:17 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    what's output for
    Code (Text):
    egrep -i 'email|to =' /etc/csf/csf.conf | grep -v '^#'

    see there's LF_EMAIL_ALERT = "1" and LF_SSH_EMAIL_ALERT = "1"
    Code (Text):
    egrep -i 'email|to =' /etc/csf/csf.conf | grep -v '^#'
    LF_ALERT_TO = ""
    X_ARF_TO = ""
    LF_EMAIL_ALERT = "1"
    LF_SSH_EMAIL_ALERT = "1"
    LF_SU_EMAIL_ALERT = "1"
    LF_SUDO_EMAIL_ALERT = "0"
    LF_WEBMIN_EMAIL_ALERT = "1"
    LF_CONSOLE_EMAIL_ALERT = "1"
    LT_EMAIL_ALERT = "1"
    CT_EMAIL_ALERT = "1"
    PS_EMAIL_ALERT = "1"
    CLUSTER_SENDTO = ""
    

    Code (Text):
    grep -C4 -i '^LF_SSH_EMAIL_ALERT' /etc/csf/csf.conf 
    # Send an email alert if anyone logs in successfully using SSH
    #
    # SECURITY NOTE: This option is affected by the RESTRICT_SYSLOG option. Read
    # this file about RESTRICT_SYSLOG before enabling this option:
    LF_SSH_EMAIL_ALERT = "1"
    
     
  3. pamamolf

    pamamolf Well-Known Member

    4,125
    429
    83
    May 31, 2014
    Ratings:
    +841
    Local Time:
    7:17 AM
    Nginx-1.29.x
    MariaDB 10.6.x
    Code:
    LF_ALERT_TO = ""
    X_ARF_TO = ""
    LF_EMAIL_ALERT = "1"
    LF_SSH_EMAIL_ALERT = "1"
    LF_SU_EMAIL_ALERT = "1"
    LF_SUDO_EMAIL_ALERT = "0"
    LF_WEBMIN_EMAIL_ALERT = "1"
    LF_CONSOLE_EMAIL_ALERT = "1"
    LT_EMAIL_ALERT = "1"
    CT_EMAIL_ALERT = "1"
    PS_EMAIL_ALERT = "1"
    CLUSTER_SENDTO = ""
    I disable all of them by setting them to 0 as i don't need any emails from csf....

    Thank you !
     
    Last edited: Apr 18, 2020