Mail delivery fails in AIQUM when StartTLS is enabled
Applies to
Issue
- Mail is not delivered
- Mailserver certificate is signed by local CA
- StartTLS is enabled in SMTP settings
ocumserver.log
:
2024-08-01 03:07:22,361 WARN [umadmin] [default task-363] [service.event.AlertDataAccessService|testAlerts] [c.n.dfm.impl.alert.EmailAlertAction] Exception while sending mail.
org.springframework.mail.MailSendException: Mail server connection failed; nested exception is javax.mail.MessagingException: Could not convert socket to TLS;
nested exception is:
javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to
requested target. Failed messages: javax.mail.MessagingException: Could not convert socket to TLS;
nested exception is:
javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target