Skip to main content
Question

Can't send emails from JSS - Error message

  • January 22, 2015
  • 4 replies
  • 10 views

Forum|alt.badge.img+10

Recently I have been able to send emails from my JSS. I mainly use this to enroll people in the VPP. Today I got this message after testing the email settings. I have tried port 465 (with SSL) and port 587 (with TLS)

Any ideas? Thanks

Error sending message: com.sun.mail.util.MailConnectException: Couldn't connect to host, port: smtp.gmail.com, 456; timeout 5000; nested exception is: java.net.UnknownHostException: smtp.gmail.com

4 replies

davidacland
Forum|alt.badge.img+18
  • Valued Contributor
  • 1811 replies
  • January 22, 2015

My first guess would be a firewall rule has changed somewhere. I set up a 9.63 JSS a couple of weeks ago connecting to smtp.gmail.com and it is working ok.

The error is basically saying it can't reach smtp.gmail.com on port 456 (I think). Actually, is that correct? Should it not say 465?

Another useful test (from the same lan as the JSS:

nc -z smtp.gmail.com 465

You should get:

Connection to smtp.gmail.com port 465 [tcp/urd] succeeded!

This will tell you if the service is reachable. If it fails (or gets no response), it's probably a networking issue.


acodega
Forum|alt.badge.img+15
  • Valued Contributor
  • 383 replies
  • January 22, 2015

Your error message says port 456 but you said port you were using port 465?

Port 465 is the port you want. This page has all the info.


Forum|alt.badge.img+10
  • Author
  • Contributor
  • 123 replies
  • January 22, 2015

Sorry that was a typo. I am now using Gmail with port 587 (TLS), and I can send an email. I just can't send out an enrollment invitation. Should I start a new topic on that?


acodega
Forum|alt.badge.img+15
  • Valued Contributor
  • 383 replies
  • January 22, 2015

I don't think so, what sort of errors do you get on the JSS server?