Problem
The JS7 can be configured to send e-mail JS7 - Notification in case of successful or failed execution of jobs and workflows. A number of errors can indicate that this connection does not work:
javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate) javax.mail.MessagingException: Could not connect to SMTP host: mail.example.com, port: 587
javax.net.ssl.SSLException: Unsupported or unrecognized SSL message javax.mail.MessagingException: Could not connect to SMTP host: mail.example.com, port: 587
The error messages are raised by the JOC Cockpit JS7 - Monitor Service when trying to send mail. They can be found in the service-monitor.log file, see JS7 - Log Files and Locations.
Analysis
There are a larger number of screws that users can turn. It is important to narrow down the problem in a systematic way and not to turn too many screws at the same time.
Determine Port Usage
Mail servers frequently use specific ports per type of connection:
Port | Protocol | Purpose | Certificate |
---|---|---|---|
25 | SMTP | Plain Text | no |
465 | SMTPS (Implicit SSL) | SMTP over SSL | yes |
587 / 2525 | SMTP (Explicit SSL) | SMTP over TLS | yes |
Below examples check availability of port 587, however, any port can be used:
# should telnet be available telnet mail.example.com 587 # should nc or ncat be available ncat -v -u mail.example.com 587
Test-NetConnection -ComputerName mail.example.com -Port 587
Certificate Management
openssl s_client -showcerts -connect mail.example.com:465
Specify Authentication
x