Gmail -java error

What does this error code mean:

aused by: java.net.UnknownHostException: smtp.gmail.com
        at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184) ~[na:1.8.0]
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) ~[na:1.8.0]
        at java.net.Socket.connect(Socket.java:589) ~[na:1.8.0]
        at java.net.Socket.connect(Socket.java:538) ~[na:1.8.0]
        at java.net.Socket.<init>(Socket.java:434) ~[na:1.8.0]
        at java.net.Socket.<init>(Socket.java:286) ~[na:1.8.0]
        at org.apache.geronimo.javamail.transport.smtp.SMTPTransport.getConnectedSocket(SMTPTransport.java:1096) ~[na:na]
        at org.apache.geronimo.javamail.transport.smtp.SMTPTransport.getConnection(SMTPTransport.java:856) ~[na:na]
        at org.apache.geronimo.javamail.transport.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:385) ~[na:na]
        ... 36 common frames omitted

i copied the mail. binding into addons and used this setting in the config file

######################## Mail Action configuration ####################################
#
# The SMTP server hostname, e.g. "smtp.gmail.com"
mail:hostname=smtp.gmail.com

# the SMTP port to use (optional, defaults to 25 (resp. 587 for TLS))
mail:port=587

# the username and password if the SMTP server requires authentication
mail:username=xxxxxx
mail:password=xxxxxx

# The email address to use for sending mails
mail:from=xxxxx@gmail.com

# set to "true", if TLS should be used for the connection
# (optional, defaults to false)
mail:tls=true

# set to "true", if POP before SMTP (another authentication mechanism)
# should be enabled. Username and Password are taken from the above
# configuration (optional, default to false)
#mail:popbeforesmtp=

“Thrown to indicate that the IP address of a host could not be determined.”

Is there any possibility that you have some whitespace (space, tabs, etc.) at the end of the configuration line?

Double checked, but there were no whitespaces there

I will try on another rpi now

You can use “nslookup smtp.google.com” on the RPi to verify that the host can resolve the name. When I run it from the Pi I see…

Non-authoritative answer:
smtp.gmail.com	canonical name = gmail-smtp-msa.l.google.com.
Name:	gmail-smtp-msa.l.google.com
Address: 74.125.22.108
Name:	gmail-smtp-msa.l.google.com
Address: 74.125.22.109

If the name can’t be resolved from your host, you see something like…

** server can't find smtp.gmail.com: NXDOMAIN

on to it, however now i get this error…

pi@raspberrypi ~ $ sudo apt-get install dnsutils
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
  rblcheck
The following NEW packages will be installed:
  dnsutils
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 162 kB of archives.
After this operation, 309 kB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
  dnsutils
Install these packages without verification [y/N]? y
Err http://mirrordirector.raspbian.org/raspbian/ wheezy/main dnsutils armhf 1:9.8.4.dfsg.P1-6+nmu2+deb7u7
  Something wicked happened resolving 'mirrordirector.raspbian.org:http' (-5 - No address associated with hostname)
Failed to fetch http://mirrordirector.raspbian.org/raspbian/pool/main/b/bind9/dnsutils_9.8.4.dfsg.P1-6+nmu2+deb7u7_armhf.deb  Something wicked happened resolving 'mirrordirector.raspbian.org:http' (-5 - No address associated with hostname)
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
pi@raspberrypi ~ $ nslookup smtp.google.com
-bash: nslookup: command not found

maybe i have to reinstall rasbian.

Hi Kim,
I would say this seems to be a DNS problem. Can you “ping smtp.gmail.com”?
You should verify your network settings regarding IP and DNS.

Regards,
Michael

 ping smtp.gmail.com
PING gmail-smtp-msa.l.google.com (64.233.162.108) 56(84) bytes of data.
64 bytes from li-in-f108.1e100.net (64.233.162.108): icmp_req=1 ttl=45 time=35.9                              ms
64 bytes from li-in-f108.1e100.net (64.233.162.108): icmp_req=2 ttl=45 time=45.0                              ms
64 bytes from li-in-f108.1e100.net (64.233.162.108): icmp_req=3 ttl=45 time=41.0                              ms
64 bytes from li-in-f108.1e100.net (64.233.162.108): icmp_req=4 ttl=45 time=39.9                              ms
64 bytes from li-in-f108.1e100.net (64.233.162.108): icmp_req=5 ttl=45 time=49.9                              ms
64 bytes from li-in-f108.1e100.net (64.233.162.108): icmp_req=6 ttl=45 time=43.6                              ms
64 bytes from li-in-f108.1e100.net (64.233.162.108): icmp_req=7 ttl=45 time=49.8                              ms
64 bytes from li-in-f108.1e100.net (64.233.162.108): icmp_req=8 ttl=45 time=48.5 ms
64 bytes from li-in-f108.1e100.net (64.233.162.108): icmp_req=9 ttl=45 time=43.3 ms
64 bytes from li-in-f108.1e100.net (64.233.162.108): icmp_req=10 ttl=45 time=243 ms
64 bytes from li-in-f108.1e100.net (64.233.162.108): icmp_req=11 ttl=45 time=67.8 ms
64 bytes from li-in-f108.1e100.net (64.233.162.108): icmp_req=12 ttl=45 time=42.1 ms
64 bytes from li-in-f108.1e100.net (64.233.162.108): icmp_req=13 ttl=45 time=36.1 ms

seems to work…