02-22-2017 05:49 PM
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
02-24-2017 10:03 AM
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
02-24-2017 10:03 AM
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
Explore our Alfresco products with the links below. Use labels to filter content by product module.