I just installed alfresco community 5.1 , I tried to configure outbound emails , i added all the configurations in alfresco-global.properties :
# Sample #Gmail settings
mail.host=smtp.gmail.com
mail.port=465
mail.username=----------@gmail.com
mail.password=**********
mail.protocol=smtps
mail.smtps.starttls.enable=true
mail.smtps.auth=true
and when i test it i get this exception:
Failed to send email to azerty@gmail.com : org.springframework.mail.MailSendException: Mail server connection failed; nested exception is 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. Failed messages: 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; message exceptions (1) are:
Failed message 1: 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
Solved! Go to Solution.
Generally speaking that message occurs when java doesn't know about the certificate it's trying to connect to.
The first thing I'd try would be to install the JCE extensions e.g. Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files for JDK/JRE 8 Downloa...
It may be overkill but we have been known to route mail via gmail from Alfresco via a local postfix installation
Generally speaking that message occurs when java doesn't know about the certificate it's trying to connect to.
The first thing I'd try would be to install the JCE extensions e.g. Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files for JDK/JRE 8 Downloa...
It may be overkill but we have been known to route mail via gmail from Alfresco via a local postfix installation
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.