How to run CSF while not running mail server
Posted: 25 Jul 2016, 10:02
Hi,
In one of the servers that we manage, we don't want to run any mail server. When we setup CSF and start it, lfd is stopping soon after it has been started. We removed SENDMAIL path line from csf.conf and restarted csf. Still lfd wouldn't run.
------------------------------------ lfd.log entries --------------------------
Jul 25 00:00:02 localhost lfd[38846]: Unable to send SENDMAIL alert via []: No such file or directory at /usr/sbin/lfd line 3725.
Jul 25 00:00:02 localhost lfd[38846]: daemon stopped
Jul 25 00:00:07 localhost lfd[38837]: *Error* pid mismatch or missing, at line 907
Jul 25 00:00:07 localhost lfd[38837]: daemon stopped
---------------------------------------------------------------------------------
[root@localhost ~]# grep ^SMTP /etc/csf/csf.conf
SMTP_BLOCK = "0"
SMTP_ALLOWLOCAL = "0"
SMTP_REDIRECT = "0"
SMTP_PORTS = "25,465,587"
SMTP_ALLOWUSER = ""
SMTP_ALLOWGROUP = "mail,mailman"
SMTPAUTH_RESTRICT = "0"
SMTPAUTH_LOG = "/var/log/secure"
This is a CentOS 7 server with Plesk control panel on it. We would like to know how to run lfd even if we don't run a mail server (as we don't need any mail alerts).
Thank you
In one of the servers that we manage, we don't want to run any mail server. When we setup CSF and start it, lfd is stopping soon after it has been started. We removed SENDMAIL path line from csf.conf and restarted csf. Still lfd wouldn't run.
------------------------------------ lfd.log entries --------------------------
Jul 25 00:00:02 localhost lfd[38846]: Unable to send SENDMAIL alert via []: No such file or directory at /usr/sbin/lfd line 3725.
Jul 25 00:00:02 localhost lfd[38846]: daemon stopped
Jul 25 00:00:07 localhost lfd[38837]: *Error* pid mismatch or missing, at line 907
Jul 25 00:00:07 localhost lfd[38837]: daemon stopped
---------------------------------------------------------------------------------
[root@localhost ~]# grep ^SMTP /etc/csf/csf.conf
SMTP_BLOCK = "0"
SMTP_ALLOWLOCAL = "0"
SMTP_REDIRECT = "0"
SMTP_PORTS = "25,465,587"
SMTP_ALLOWUSER = ""
SMTP_ALLOWGROUP = "mail,mailman"
SMTPAUTH_RESTRICT = "0"
SMTPAUTH_LOG = "/var/log/secure"
This is a CentOS 7 server with Plesk control panel on it. We would like to know how to run lfd even if we don't run a mail server (as we don't need any mail alerts).
Thank you