Posted on 01-22-2015 08:27 AM
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
Posted on 01-22-2015 08:46 AM
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.
Posted on 01-22-2015 09:24 AM
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.
Posted on 01-22-2015 10:11 AM
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?
Posted on 01-22-2015 11:27 AM
I don't think so, what sort of errors do you get on the JSS server?