Unable to Setup Email in FreeNAS

Status
Not open for further replies.

theEmbark

Explorer
Joined
Apr 28, 2016
Messages
53
Hey guys,

I had a working version of freeNAS up and switched my install media to some SSDs so I performed a clean install of freeNAS. I'm going thru my setup notes and trying to verify my email is setup and am having issues.

I am using the below credentials - which I confirmed to be correct but freeNAS isn't liking the idea of sending a test email. My email IS a google business apps email account but the SMTP setup is the same.


Thanks,
Kevin
 
Last edited:

Spearfoot

He of the long foot
Moderator
Joined
May 13, 2015
Messages
2,478
Hey guys,

I had a working version of freeNAS up and switched my install media to some SSDs so I performed a clean install of freeNAS. I'm going thru my setup notes and trying to verify my email is setup and am having issues.

I am using the below credentials - which I confirmed to be correct but freeNAS isn't liking the idea of sending a test email. My email IS a google business apps email account but the SMTP setup is the same.
Screenshot%202016-07-16%2015.03.53.png


Thanks,
Kevin
I believe the Google SMTP server is at smtp.gmail.com, not smtp.google.com.

Also, make sure you've specified a DNS server in your network settings.
 

theEmbark

Explorer
Joined
Apr 28, 2016
Messages
53
I believe the Google SMTP server is at smtp.gmail.com, not smtp.google.com.

Also, make sure you've specified a DNS server in your network settings.
Oh wow! :eek: that's what I had written down. I guess my fingers weren't on the same page.

So I updated it to smtp.gmail.com but still get the error:


DNS is setup as follows - just pointing to google:
Screenshot%202016-07-16%2015.28.35.png
 
Last edited:

pschatz100

Guru
Joined
Mar 30, 2014
Messages
1,184
First of all, have you set up email for Root user?

You need to specify a default gateway. You might also try changing the port to 587. I had better luck with that one. And you should change your security to TLS. It is better than SSL for this purpose.
 

Spearfoot

He of the long foot
Moderator
Joined
May 13, 2015
Messages
2,478
First of all, have you set up email for Root user?

You need to specify a default gateway. You might also try changing the port to 587. I had better luck with that one. And you should change your security to TLS. It is better than SSL for this purpose.
Agree that OP needs an IPv4 default gateway.

According to Google support, you can use SSL on port 465 or TLS on port 587 -- whichever floats your boat! -- both hitting smtp.gmail.com:

https://support.google.com/a/answer/176600?hl=en
 

theEmbark

Explorer
Joined
Apr 28, 2016
Messages
53
I will try the IPv4 default gateway. I didn't have this setup before and when I googled this issue people suggested trying that although I didn't see any direct results from it. I actually did test it and it didn't fix the issue so I removed it but let me try switching ports and I'll put my router address in again.

Thanks,
Kevin

That seemed to work! Thanks guys!
-Kevin
 
Last edited:

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
The port is not your problem, the problem is that your FreeNAS box doesn't know who "smtp.gmail.com" is. If you have a nameserver configured (as you do), the next most likely reason is that you don't have a gateway configured, and you don't. Configure it, and see what that does. If it still doesn't work, refer to my previous post.
 

pschatz100

Guru
Joined
Mar 30, 2014
Messages
1,184

markpingel

Cadet
Joined
Aug 22, 2016
Messages
1
The "less secure apps"thing worked for me to. Anyone know how to keep that setting to the secure side of things and still get freenas to send emails?
 

pschatz100

Guru
Joined
Mar 30, 2014
Messages
1,184
The "less secure apps"thing worked for me to. Anyone know how to keep that setting to the secure side of things and still get freenas to send emails?
I don't think the "less secure apps" setting in Gmail is all that big an issue. It is a set of protocols that gmail has decided may not be as good as their preferred protocols. Google does this from time to time. At the end of the day, your email is still secure enough (you have to accept the fact that no email system is perfectly secure.)

If you want to be extra careful, then create a gmail account just for your systems monitoring. That is what I have done and I've never experienced a problem. If the email account were to be compromised somehow, I would just delete that account and it would not affect my regular email activity. Gmail provides lots of tools for forwarding and labeling messages, so you can set up alerts from a special gmail account and have them forwarded to an account you use on a daily basis.
 
Status
Not open for further replies.
Top