Page 1 of 1

CSF/LFD email without mail server, using 3rd party SMTP how?

Posted: 18 Jul 2015, 11:55
by GazCBG
Hi,

I have just install CSF on Ubuntu, on a Digital Ocean droplet.
I don't have an email server installed, so I would like to send CSF/LFD emails via a 3rd party SMTP server.

How would I do this, without installing a mail server?
I have looked at the csf.conf and couldn't see away.

Thanks,
Gaz

Re: CSF/LFD email without mail server, using 3rd party SMTP how?

Posted: 18 Jul 2015, 12:28
by ForumAdmin
You would have to use LF_ALERT_SMTP

Re: CSF/LFD email without mail server, using 3rd party SMTP how?

Posted: 18 Jul 2015, 12:31
by GazCBG
Hi,

Thanks for the reply.
How would I set the username and password for the SMTP as it, is required?

Thanks,
Gaz

Re: CSF/LFD email without mail server, using 3rd party SMTP how?

Posted: 18 Jul 2015, 12:32
by ForumAdmin
There is no such functionality in csf to do that.

Re: CSF/LFD email without mail server, using 3rd party SMTP how?

Posted: 18 Jul 2015, 20:42
by GazCBG
Hi,

I have sorted this problem now, by installing sSMTP and using Gmail SMTP

Re: CSF/LFD email without mail server, using 3rd party SMTP how?

Posted: 15 Mar 2016, 03:01
by shealyw2
GazCBG wrote:Hi,

I have sorted this problem now, by installing sSMTP and using Gmail SMTP
Can you share how you were able to accomplish this? Did you need to do anything special other than setup SSMTP? I'm finding very little information on this.

Thanks,
shealyw2

Re: CSF/LFD email without mail server, using 3rd party SMTP how?

Posted: 15 Mar 2016, 08:37
by GazCBG
Hi,

If I remember I installed sSMTP and then followed this setup guide:
Link: http://www.havetheknowhow.com/Configure ... ssmtp.html

Hope this helps.
Also if you using Google email account and have it locked down you need another password, which you need to setup, if you try and send an email like it says, it will come back from Google with a link.

Re: CSF/LFD email without mail server, using 3rd party SMTP how?

Posted: 15 Mar 2016, 23:40
by shealyw2
Thanks GazCBG, that lead to on the right path. Seems installing ssmpt takes the place of sendmail.

Re: CSF/LFD email without mail server, using 3rd party SMTP how?

Posted: 27 Jun 2016, 16:10
by GazCBG
Hi,

Just a follow up on this, I just installed sSMTP on a Ubunta 16.04 LTS VPS for CSF emails and had issues, with connecting to smtp.gmail.com

The fix is to set the hostname as localhost instead of the email address, like:

Code: Select all

hostname=localhost

Re: CSF/LFD email without mail server, using 3rd party SMTP how?

Posted: 06 Jul 2020, 15:28
by emyabdel
and when installing smtp how to configure this line in csf.conf:
LF_ALERT_SMTP