Welcome to Centmin Mod Community
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 Premium Member Premium Member

    3,858
    379
    83
    May 31, 2014
    Ratings:
    +731
    Local Time:
    5:55 PM
    Nginx-1.17.x
    MariaDB 10.3.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

    45,436
    10,312
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,992
    Local Time:
    1:55 AM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    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 Premium Member Premium Member

    3,858
    379
    83
    May 31, 2014
    Ratings:
    +731
    Local Time:
    5:55 PM
    Nginx-1.17.x
    MariaDB 10.3.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