<分区>
我正在尝试在 TeamCity 服务器中配置电子邮件通知。
这是我尝试过的 2 个配置以及当我按下其下方的 Test connection
按钮时收到的相应错误:
配置1
SMTP host: smtp.gmail.com
SMTP port: 465
Send email messages from: foobar@gmail.com
SMTP login: foobar@gmail.com
SMTP password: •••••••••
Secure connection: SSL
错误:
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
配置2
SMTP host: smtp.gmail.com
SMTP port: 587
Send email messages from: foobar@gmail.com
SMTP login: foobar@gmail.com
SMTP password: •••••••••
Secure connection: StartTSL
错误:
javax.mail.MessagingException: Could not convert socket to TLS;
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
这里出了什么问题?