You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

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:

PortProtocolPurposeCertificate
25SMTPPlain Text no
465SMTPS (Implicit SSL)SMTP over SSLyes
587 / 2525SMTP (Explicit SSL)SMTP over TLSyes


Below examples check availability of port 587, however, any port can be used:

Test Connection with Curl (Unix, Windows)
# should telnet be available
telnet mail.example.com 587

# should nc or ncat be available
ncat -v -u mail.example.com 587
Test Connection with PowerShell (Windows, Unix)
Test-NetConnection -ComputerName mail.example.com -Port 587

Certificate Management

openssl s_client -showcerts -connect mail.example.com:465

Specify Authentication

x

Solution


 





  • No labels