Smtp authentication

I need to authenticate agains a smtp server to send emails. I get this error:

> The Graylog server encountered an error while trying to send an email. This is the detailed error message: org.apache.commons.mail.EmailException: Sending the email to the following server failed : (javax.mail.MessagingException: Could not convert socket to TLS; nested exception is: PKIX path building failed: unable to find valid certification path to requested target)
But the Java Keystore is defined with this:
Is there another Java parameter I need to define?

Graylog is 3.3.5, Java is OpenJDK 1.8.0_232.

Thanks in advance,


  1. Try to debug connection to SMTP server using SSLPoke.class

  2. Your java keystore files (cacerts.jks) should contain root CA certificate of your SMTP server. If you use also intermediate certificate, please also include it in keystore, so certifcate path is valid.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.