CSF set to send emails via SMTP authentication
Hello,
I see that CSF has two options: LF_ALERT_FROM and LF_ALERT_SMTP, but there's no options to set any username and password.
I am trying to set SMTP authentication for LFD alerts, so that they'll be directly sent from my SMTP authentication.
Is that possible to do so? I tried things like this and SSHed to my server but still it's sending from root@server.com (I repeated same directive multiple times to show what I tried):
# By default, lfd will send alert emails using the relevant alert template from
# the From: address configured within that template. Setting the following
# option will override the configured From: field in all lfd alert emails
#
# Leave this option empty to use the From: field setting in each alert template
LF_ALERT_FROM = ""
LF_ALERT_FROM = "csf@mysite.com"
LF_ALERT_FROM = "csf@mysite.com:MyStrongPassword"
LF_ALERT_FROM = "csf@mysite.com:'My@$SpecialP@ssw0r#'"
# By default, lfd will send all alerts using the SENDMAIL binary. To send using
# SMTP directly, you can set the following to a relaying SMTP server, e.g.
# "127.0.0.1". Leave this setting blank to use SENDMAIL
LF_ALERT_SMTP = "'csf@mysite.com':'My@$SpecialP@ssw0r#'@mail.mysite.com:587"
LF_ALERT_SMTP = "mail.mysite.com"
LF_ALERT_SMTP = "mail.mysite.com:587"
LF_ALERT_SMTP = "mail.mysite.com"
-
To the best of my knowledge it's not possible to authenticate. 0
Please sign in to leave a comment.
Comments
3 comments