Assistance with Gmail and networking setup?

Status
Not open for further replies.

Maggo

Dabbler
Joined
Mar 27, 2016
Messages
12
Sorry, I need some help.
I followed the instructions step-by-step EXCEPT the point "allow less secure applications" because I can`t find this option in my Gmail-Account. I read that I need an admin account? I just have a "normal" Gmail account. But I think "allow less secure applications" is not necessary when I make it with "2-step Verification"?

So I generated a new app-passwort in googlemail. Copied this passwort to the eMail settings in freeNAS
My eMail settings in freeNAS look like this (sorry all in german but I think its comprehensible :))
under the red boxes is my eMail for example maggo@gmail.com
Same eMail for user "root"


But always get the error [Errno 8] hostname nor servname provided, or not known when I try to send a testmail :(
Can anybody tell me whats wrong?
Regards,
 

Attachments

  • email settings nas.jpg
    email settings nas.jpg
    67.3 KB · Views: 301

depasseg

FreeNAS Replicant
Joined
Sep 16, 2014
Messages
2,874
Can you paste a copy of the error? It sounds like you might not have your nameserver or gateway configured.
I use port 587 and TLS.
 

Maggo

Dabbler
Joined
Mar 27, 2016
Messages
12
Can you paste a copy of the error? It sounds like you might not have your nameserver or gateway configured.
I use port 587 and TLS.

[Errno 8] hostname nor servname provided, or not known
This is the error message when I try to send a testmail
 

depasseg

FreeNAS Replicant
Joined
Sep 16, 2014
Messages
2,874
@jgreco - can we make this it's own thread?

@Maggo, I'm guessing you don't have networking setup properly. Open a shell and ping smtp.gmail.com
You should see something like:
Code:
[root@freenas1 ~]# ping smtp.gmail.com                                         
PING gmail-smtp-msa.l.google.com (209.85.201.109): 56 data bytes               
64 bytes from 209.85.201.109: icmp_seq=0 ttl=42 time=29.393 ms                 
64 bytes from 209.85.201.109: icmp_seq=1 ttl=42 time=30.054 ms                 
64 bytes from 209.85.201.109: icmp_seq=2 ttl=42 time=31.507 ms                 
^C                                                                             
--- gmail-smtp-msa.l.google.com ping statistics ---                            
3 packets transmitted, 3 packets received, 0.0% packet loss                    
round-trip min/avg/max/stddev = 29.393/30.318/31.507/0.883 ms                  
[root@freenas1 ~]#      


Do you have a nameserver and gateway configured?
 

Maggo

Dabbler
Joined
Mar 27, 2016
Messages
12
@jgreco - can we make this it's own thread?

@Maggo, I'm guessing you don't have networking setup properly. Open a shell and ping smtp.gmail.com
You should see something like:
Code:
[root@freenas1 ~]# ping smtp.gmail.com                                        
PING gmail-smtp-msa.l.google.com (209.85.201.109): 56 data bytes              
64 bytes from 209.85.201.109: icmp_seq=0 ttl=42 time=29.393 ms                
64 bytes from 209.85.201.109: icmp_seq=1 ttl=42 time=30.054 ms                
64 bytes from 209.85.201.109: icmp_seq=2 ttl=42 time=31.507 ms                
^C                                                                            
--- gmail-smtp-msa.l.google.com ping statistics ---                           
3 packets transmitted, 3 packets received, 0.0% packet loss                   
round-trip min/avg/max/stddev = 29.393/30.318/31.507/0.883 ms                 
[root@freenas1 ~]#      


Do you have a nameserver and gateway configured?

OK, this is what I get:
Code:
[root@FreeNAS ~]# ping smtp.gmail.com
ping: cannot resolve smtp.gmail.com: Host name lookup failure


Think this is not this what you want to see. So therefore I think my configuration of nameserver and gateway is completely wrong.

settings see here:

So you may have the patience to explain me what I have to set it up?
Thanks in forehand
 

Attachments

  • network.jpg
    network.jpg
    49.1 KB · Views: 324

depasseg

FreeNAS Replicant
Joined
Sep 16, 2014
Messages
2,874
There's the problem. You need to fill in your default gateway and nameserver info. The gateway is specific to your network. If you are using a basic home router, it it very likely 192.168.1.1 (but double check with your computer). And you can use googles DNS server - 8.8.8.8.
 

Maggo

Dabbler
Joined
Mar 27, 2016
Messages
12
There's the problem. You need to fill in your default gateway and nameserver info. The gateway is specific to your network. If you are using a basic home router, it it very likely 192.168.1.1 (but double check with your computer). And you can use googles DNS server - 8.8.8.8.

Thank you very very much depasseg for your help!
I think it works
Code:
[root@FreeNAS ~]# ping smtp.gmail.com
PING gmail-smtp-msa.l.google.com (74.125.136.108): 56 data bytes
64 bytes from 74.125.136.108: icmp_seq=0 ttl=47 time=35.852 ms
64 bytes from 74.125.136.108: icmp_seq=1 ttl=47 time=42.620 ms
.
.
.
64 bytes from 74.125.136.108: icmp_seq=14 ttl=47 time=33.417 ms
64 bytes from 74.125.136.108: icmp_seq=15 ttl=47 time=35.399 ms
^C
--- gmail-smtp-msa.l.google.com ping statistics ---
16 packets transmitted, 16 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 33.417/36.390/42.620/2.136 ms
[root@FreeNAS ~]#



Also get a Testmail

Last question for the services
Dynamic DNS is OFF. This is correct? In other discriptions I read that the DNS has to be enabled
 

jgreco

Resident Grinch
Joined
May 29, 2011
Messages
18,680
"Dynamic DNS" is a crappy term for services that allow you to set a domain-name-to-IP-address translation for hosts that do not have a static IP address. It has almost nothing to do with DNS itself.
 

depasseg

FreeNAS Replicant
Joined
Sep 16, 2014
Messages
2,874
I'm glad to hear it's working! :smile:
 
Status
Not open for further replies.
Top