Can't send emails from JSS - Error message

jgwatson
Contributor

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 4

davidacland
Honored Contributor II
Honored Contributor II

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.

adamcodega
Valued Contributor

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.

jgwatson
Contributor

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?

adamcodega
Valued Contributor

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