HI all,
I’ve setup the mail configuration part for use the mail alerting.
However, it wasn’t work.
transport_email_enabled = true
transport_email_hostname = mail.domain
transport_email_port = 25
transport_email_use_auth = true
transport_email_use_tls = false
transport_email_use_ssl = false
transport_email_auth_username = mail
transport_email_auth_password = ***************
transport_email_subject_prefix = [graylog]
transport_email_from_email = graylog@domain
=> KO
transport_email_enabled = true
transport_email_hostname = mail.domain
transport_email_port = 25
transport_email_use_auth = true
transport_email_use_tls = true
transport_email_use_ssl = false
transport_email_auth_username = mail
transport_email_auth_password = ***************
transport_email_subject_prefix = [graylog]
transport_email_from_email = graylog@domain
=> KO
transport_email_enabled = true
transport_email_hostname = mail.domain
transport_email_port = 25
transport_email_use_auth = true
transport_email_use_tls = false
transport_email_use_ssl = true
transport_email_auth_username = mail
transport_email_auth_password = ***************
transport_email_subject_prefix = [graylog]
transport_email_from_email = graylog@domain
=> KO
transport_email_enabled = true
transport_email_hostname = mail.domain
transport_email_port = 587
transport_email_use_auth = true
transport_email_use_tls = true
transport_email_use_ssl = true
transport_email_auth_username = mail
transport_email_auth_password = ***************
transport_email_subject_prefix = [graylog]
transport_email_from_email = graylog@domain
=> KO
Mail account configuration into standard mail client :
- SMTP 25 , normal password , STARTTLS
Do you have a solution ?
Thanks
Edit 1 : I think, it is the trust store with our self signed cert …
Edit 2 :
I use keytool to import dovecot certificat into “/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.151-1.b12.el7_4.x86_64/jre/lib/security/cacerts”, restart graylog and retry :
Caused by: javax.mail.MessagingException: Could not convert socket to TLS
Caused by: 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
Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target