I am using gmail smtp settings in graylog/server.conf file.
Getting below error message when try to send test mail
"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 : smtp.gmail.com:465 (javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 465; nested exception is: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target)"
Even I have tried our company mail server SMTP keeping SSL and TLS option set as true, but getting same error as mentioned above.
Are you using a custom trust store for your JVM?
Are you using the latest âofficialâ trust store (e. g. via the package ca-certificates-java if youâre using Ubuntu Linux) for your JVM?
Youâre overwriting the default trust store, which contains all well-known certificate authorities (i. e. the one that issued the certificate for smtp.gmail.com) with the javax.net.ssl.trustStore system property.
debian:globalsign_root_ca_-r3.pem, Nov 23, 2017, trustedCertEntry,
debian:globalsign_ecc_root_ca-r5.pem, Nov 23, 2017, trustedCertEntry,
debian:globalsign_root_ca-r2.pem, Nov 23, 2017, trustedCertEntry,
debian:globalsign_ecc_root_ca-_r4.pem, Nov 23, 2017, trustedCertEntry,
debian:globalsign_root_ca.pem, Nov 23, 2017, trustedCertEntry,