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

Post Reply
GazCBG
Junior Member
Posts: 9
Joined: 18 Jul 2015, 11:46

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

Post 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
ForumAdmin
Moderator
Posts: 1522
Joined: 01 Oct 2008, 09:24

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

Post by ForumAdmin »

You would have to use LF_ALERT_SMTP
GazCBG
Junior Member
Posts: 9
Joined: 18 Jul 2015, 11:46

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

Post by GazCBG »

Hi,

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

Thanks,
Gaz
ForumAdmin
Moderator
Posts: 1522
Joined: 01 Oct 2008, 09:24

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

Post by ForumAdmin »

There is no such functionality in csf to do that.
GazCBG
Junior Member
Posts: 9
Joined: 18 Jul 2015, 11:46

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

Post by GazCBG »

Hi,

I have sorted this problem now, by installing sSMTP and using Gmail SMTP
shealyw2
Junior Member
Posts: 4
Joined: 03 Jun 2013, 23:29

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

Post 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
GazCBG
Junior Member
Posts: 9
Joined: 18 Jul 2015, 11:46

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

Post 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.
shealyw2
Junior Member
Posts: 4
Joined: 03 Jun 2013, 23:29

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

Post by shealyw2 »

Thanks GazCBG, that lead to on the right path. Seems installing ssmpt takes the place of sendmail.
GazCBG
Junior Member
Posts: 9
Joined: 18 Jul 2015, 11:46

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

Post 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
emyabdel
Junior Member
Posts: 3
Joined: 01 Jul 2020, 17:23

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

Post by emyabdel »

and when installing smtp how to configure this line in csf.conf:
LF_ALERT_SMTP
Post Reply