2016-10-17 14 views
2

TeamCityサーバーで電子メール通知を設定しようとしています。GmailのSMTP設定は?

私はここで

は2つの、私が試したのconfigs、私はそれを下回るTest connectionボタンを押したときに、私が受け取るそれぞれのエラーでthisthisドキュメントを読んで、そしてコンフィグを設定しようとしました:

コンフィグ1

SMTP host: smtp.gmail.com 
SMTP port: 465 
Send email messages from: [email protected] 
SMTP login: [email protected] 
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: [email protected] 
SMTP login: [email protected] 
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

こっち間違って起こっていますか?

答えて