<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Connecting Zimbra SMTP server for outgoing emails: Strange Behavior in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/connecting-zimbra-smtp-server-for-outgoing-emails-strange/m-p/119996#M32980</link>
    <description>&lt;P&gt;Dear Experts,&lt;/P&gt;&lt;P&gt;Really appreciate your help on the below.&lt;/P&gt;&lt;P&gt;First the background info,&lt;/P&gt;&lt;P&gt;OS: CentOS 7.8&lt;/P&gt;&lt;P&gt;$JAVA_HOME&lt;BR /&gt;bash: /usr/lib/jvm/java-11-openjdk-11.0.8.10-0.el7_8.x86_64&lt;/P&gt;&lt;P&gt;Alfresco: 6.2 Community Edition&lt;/P&gt;&lt;P&gt;Now here's the problem,&lt;/P&gt;&lt;P&gt;This is my Zimbra settings which I tried from Thunderbird inatalled in the CentOS server.&lt;BR /&gt;Email sending works perfectly with Thunderbird.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mail-settings2.png" style="width: 575px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/928i50CB847D41D23EE6/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;This is my alfresco settings,&lt;/P&gt;&lt;P&gt;mail.host=192.168.150.25&lt;BR /&gt;mail.port=465&lt;BR /&gt;mail.protocol=smtps&lt;BR /&gt;mail.username=dms@abc.com&lt;BR /&gt;mail.password=abc&lt;BR /&gt;mail.encoding=UTF-8&lt;BR /&gt;mail.from.default=dms@abc.com&lt;BR /&gt;mail.from.enabled=false&lt;BR /&gt;mail.smtps.starttls.enable=false # I tried this with 'true' also, same result&lt;BR /&gt;mail.smtps.auth=false # I tried this with 'true' also, same result&lt;/P&gt;&lt;P&gt;with Alfresco, when I tried to send an email (via New task workflow) I get the following error,&lt;/P&gt;&lt;P&gt;ERROR [org.alfresco.repo.action.executer.MailActionExecuter] [mailAsyncAction1] Failed to send email to [sam] : org.springframework.mail.MailSendException: Mail server connection failed; nested exception is javax.mail.MessagingException: Could not connect to SMTP host: 192.168.150.25, port: 465; nested exception is: javax.net.ssl.SSLHandshakeException: 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: 192.168.150.25, port: 465; nested exception is: javax.net.ssl.SSLHandshakeException: 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: 192.168.150.25, port: 465; nested exception is: javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target&lt;/P&gt;&lt;P&gt;Then, I tried the following command,&lt;BR /&gt;openssl s_client -host 192.168.150.25 -port 465 -showcerts &amp;lt; &amp;lt;(echo QUIT) | openssl x509 -in - -out /home/dmsuser/mail.mycompany.com.crt&lt;/P&gt;&lt;P&gt;for which I got the following response,&lt;BR /&gt;[root@localhost security]# openssl s_client -host 192.168.150.25 -port 465 -showcerts &amp;lt; &amp;lt;(echo QUIT) | openssl x509 -in - -out /home/dmsuser/mail.mycompany.com.crt&lt;BR /&gt;Error opening Certificate -&lt;BR /&gt;140649779169168:error:02001002:system library:fopen:No such file or directory:bss_file.c:402:fopen('-','r')&lt;BR /&gt;140649779169168:error:20074002:BIO routines:FILE_CTRL:system lib:bss_file.c:404:&lt;BR /&gt;unable to load certificate&lt;BR /&gt;depth=0 OU = Zimbra Collaboration Server, CN = drivegreen.lk&lt;BR /&gt;verify error:num=20:unable to get local issuer certificate&lt;BR /&gt;verify return:1&lt;BR /&gt;depth=0 OU = Zimbra Collaboration Server, CN = drivegreen.lk&lt;BR /&gt;verify error:num=21:unable to verify the first certificate&lt;BR /&gt;verify return:1&lt;BR /&gt;DONE&lt;/P&gt;&lt;P&gt;As far as I understand, smtp server doesn't have a certificate?&lt;/P&gt;&lt;P&gt;Could you please help me with the correct SMTP configuration?&lt;/P&gt;&lt;P&gt;PS: also, I've tried connecting a gmail account and that works fine. Below are gmail settings,&lt;/P&gt;&lt;P&gt;mail.host=smtp.gmail.com&lt;BR /&gt;mail.port=465&lt;BR /&gt;mail.protocol=smtps&lt;BR /&gt;mail.username=abc@gmail.com&lt;BR /&gt;mail.password=xxxxxx&lt;BR /&gt;mail.from.default=abc@abc.com&lt;BR /&gt;mail.from.enabled=false&lt;BR /&gt;mail.smtps.starttls.enable=true&lt;BR /&gt;mail.smtps.auth=true&lt;/P&gt;&lt;P&gt;Really appreciate your help on this.&lt;/P&gt;&lt;P&gt;Thanks a lot in advance!&lt;/P&gt;</description>
    <pubDate>Sun, 06 Dec 2020 10:49:54 GMT</pubDate>
    <dc:creator>200million</dc:creator>
    <dc:date>2020-12-06T10:49:54Z</dc:date>
    <item>
      <title>Connecting Zimbra SMTP server for outgoing emails: Strange Behavior</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/connecting-zimbra-smtp-server-for-outgoing-emails-strange/m-p/119996#M32980</link>
      <description>&lt;P&gt;Dear Experts,&lt;/P&gt;&lt;P&gt;Really appreciate your help on the below.&lt;/P&gt;&lt;P&gt;First the background info,&lt;/P&gt;&lt;P&gt;OS: CentOS 7.8&lt;/P&gt;&lt;P&gt;$JAVA_HOME&lt;BR /&gt;bash: /usr/lib/jvm/java-11-openjdk-11.0.8.10-0.el7_8.x86_64&lt;/P&gt;&lt;P&gt;Alfresco: 6.2 Community Edition&lt;/P&gt;&lt;P&gt;Now here's the problem,&lt;/P&gt;&lt;P&gt;This is my Zimbra settings which I tried from Thunderbird inatalled in the CentOS server.&lt;BR /&gt;Email sending works perfectly with Thunderbird.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mail-settings2.png" style="width: 575px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/928i50CB847D41D23EE6/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;This is my alfresco settings,&lt;/P&gt;&lt;P&gt;mail.host=192.168.150.25&lt;BR /&gt;mail.port=465&lt;BR /&gt;mail.protocol=smtps&lt;BR /&gt;mail.username=dms@abc.com&lt;BR /&gt;mail.password=abc&lt;BR /&gt;mail.encoding=UTF-8&lt;BR /&gt;mail.from.default=dms@abc.com&lt;BR /&gt;mail.from.enabled=false&lt;BR /&gt;mail.smtps.starttls.enable=false # I tried this with 'true' also, same result&lt;BR /&gt;mail.smtps.auth=false # I tried this with 'true' also, same result&lt;/P&gt;&lt;P&gt;with Alfresco, when I tried to send an email (via New task workflow) I get the following error,&lt;/P&gt;&lt;P&gt;ERROR [org.alfresco.repo.action.executer.MailActionExecuter] [mailAsyncAction1] Failed to send email to [sam] : org.springframework.mail.MailSendException: Mail server connection failed; nested exception is javax.mail.MessagingException: Could not connect to SMTP host: 192.168.150.25, port: 465; nested exception is: javax.net.ssl.SSLHandshakeException: 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: 192.168.150.25, port: 465; nested exception is: javax.net.ssl.SSLHandshakeException: 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: 192.168.150.25, port: 465; nested exception is: javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target&lt;/P&gt;&lt;P&gt;Then, I tried the following command,&lt;BR /&gt;openssl s_client -host 192.168.150.25 -port 465 -showcerts &amp;lt; &amp;lt;(echo QUIT) | openssl x509 -in - -out /home/dmsuser/mail.mycompany.com.crt&lt;/P&gt;&lt;P&gt;for which I got the following response,&lt;BR /&gt;[root@localhost security]# openssl s_client -host 192.168.150.25 -port 465 -showcerts &amp;lt; &amp;lt;(echo QUIT) | openssl x509 -in - -out /home/dmsuser/mail.mycompany.com.crt&lt;BR /&gt;Error opening Certificate -&lt;BR /&gt;140649779169168:error:02001002:system library:fopen:No such file or directory:bss_file.c:402:fopen('-','r')&lt;BR /&gt;140649779169168:error:20074002:BIO routines:FILE_CTRL:system lib:bss_file.c:404:&lt;BR /&gt;unable to load certificate&lt;BR /&gt;depth=0 OU = Zimbra Collaboration Server, CN = drivegreen.lk&lt;BR /&gt;verify error:num=20:unable to get local issuer certificate&lt;BR /&gt;verify return:1&lt;BR /&gt;depth=0 OU = Zimbra Collaboration Server, CN = drivegreen.lk&lt;BR /&gt;verify error:num=21:unable to verify the first certificate&lt;BR /&gt;verify return:1&lt;BR /&gt;DONE&lt;/P&gt;&lt;P&gt;As far as I understand, smtp server doesn't have a certificate?&lt;/P&gt;&lt;P&gt;Could you please help me with the correct SMTP configuration?&lt;/P&gt;&lt;P&gt;PS: also, I've tried connecting a gmail account and that works fine. Below are gmail settings,&lt;/P&gt;&lt;P&gt;mail.host=smtp.gmail.com&lt;BR /&gt;mail.port=465&lt;BR /&gt;mail.protocol=smtps&lt;BR /&gt;mail.username=abc@gmail.com&lt;BR /&gt;mail.password=xxxxxx&lt;BR /&gt;mail.from.default=abc@abc.com&lt;BR /&gt;mail.from.enabled=false&lt;BR /&gt;mail.smtps.starttls.enable=true&lt;BR /&gt;mail.smtps.auth=true&lt;/P&gt;&lt;P&gt;Really appreciate your help on this.&lt;/P&gt;&lt;P&gt;Thanks a lot in advance!&lt;/P&gt;</description>
      <pubDate>Sun, 06 Dec 2020 10:49:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/connecting-zimbra-smtp-server-for-outgoing-emails-strange/m-p/119996#M32980</guid>
      <dc:creator>200million</dc:creator>
      <dc:date>2020-12-06T10:49:54Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting Zimbra SMTP server for outgoing emails: Strange Behavior</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/connecting-zimbra-smtp-server-for-outgoing-emails-strange/m-p/119997#M32981</link>
      <description>&lt;P&gt;You are using custom certificates for your Zimbra server, so you need to enable Alfresco to validate the SMTP server certificates when using SMTPS. For GMail, this is not an issue, since they use a trusted cert from a global CA, but your certificates are probably created using a custom CA or a public CA not in the default Java truststore. So you need either to start Alfresco with a custom truststore using the appropriate Java -D flag, or import the CA certificate into the cacert truststore of Java.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Dec 2020 12:53:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/connecting-zimbra-smtp-server-for-outgoing-emails-strange/m-p/119997#M32981</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2020-12-07T12:53:55Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting Zimbra SMTP server for outgoing emails: Strange Behavior</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/connecting-zimbra-smtp-server-for-outgoing-emails-strange/m-p/119998#M32982</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;A href="https://hub.alfresco.com/t5/user/viewprofilepage/user-id/16045" target="_self" rel="nofollow noopener noreferrer"&gt;&lt;SPAN class=""&gt;afaust&lt;/SPAN&gt;&lt;/A&gt; for the detailed answer.&lt;BR /&gt;I will try that and update here&lt;/P&gt;&lt;P&gt;best regards,&lt;/P&gt;</description>
      <pubDate>Sun, 13 Dec 2020 10:50:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/connecting-zimbra-smtp-server-for-outgoing-emails-strange/m-p/119998#M32982</guid>
      <dc:creator>200million</dc:creator>
      <dc:date>2020-12-13T10:50:14Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting Zimbra SMTP server for outgoing emails: Strange Behavior</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/connecting-zimbra-smtp-server-for-outgoing-emails-strange/m-p/119999#M32983</link>
      <description>&lt;P&gt;Dear afaust,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to get onething clarified here,&lt;/P&gt;&lt;P&gt;I understand that Java cannot validate the SMTP server because it's created with CA which is not in truststore.&lt;/P&gt;&lt;P&gt;However, how come Thuderbird client installed on the same server as alfresco works without a problem? doesn't that get affected by this problem?&lt;/P&gt;&lt;P&gt;One anwer could be that, Thunderbird might be having the Root Certificate for the SMTP server certirficate. Is there any possibility of me taking that root certificate from Thunderbird and import in to the Java Truststore?&lt;/P&gt;&lt;P&gt;please pardom me if i'm asking a dumb question.&lt;/P&gt;&lt;P&gt;All the best for the new year!&lt;/P&gt;</description>
      <pubDate>Sun, 03 Jan 2021 16:06:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/connecting-zimbra-smtp-server-for-outgoing-emails-strange/m-p/119999#M32983</guid>
      <dc:creator>200million</dc:creator>
      <dc:date>2021-01-03T16:06:50Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting Zimbra SMTP server for outgoing emails: Strange Behavior</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/connecting-zimbra-smtp-server-for-outgoing-emails-strange/m-p/120000#M32984</link>
      <description>&lt;P&gt;Has anyone got this to work? Any tips?&lt;/P&gt;</description>
      <pubDate>Tue, 04 May 2021 17:52:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/connecting-zimbra-smtp-server-for-outgoing-emails-strange/m-p/120000#M32984</guid>
      <dc:creator>DavidJM</dc:creator>
      <dc:date>2021-05-04T17:52:51Z</dc:date>
    </item>
  </channel>
</rss>

