I've configured TeamCity e-mail notification to use Secure connection SSL. All parameters - host, port, login/pwd specified. Same parameters work for SVN e-mail notification, so it's not a problem. During connection test, TeamCity says:
javax.mail.MessagingException: Could not connect to SMTP host: XXX, port: YYY;
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
What should I do to fix this error?