<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									Automatic Renewal of Let&#039;s Encrypt Certificates - Carbonio General				            </title>
            <link>https://community.zextras.com/forum/carbonio-general-thread/automatic-renewal-of-lets-encrypt-certificates/</link>
            <description>Zextras Community Discussion Board</description>
            <language>en-US</language>
            <lastBuildDate>Tue, 08 Sep 2026 00:41:20 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: Automatic Renewal of Let&#039;s Encrypt Certificates</title>
                        <link>https://community.zextras.com/forum/carbonio-general-thread/automatic-renewal-of-lets-encrypt-certificates/#post-11051</link>
                        <pubDate>Wed, 03 Sep 2025 18:47:07 +0000</pubDate>
                        <description><![CDATA[Hi @haffi,
 
i have resolved the issue added an another systemd service that will be executed after the execution of the carbonio-certbot.timer:You have to create the file &quot; removed link &quot;...]]></description>
                        <content:encoded><![CDATA[<p>Hi @haffi,</p>
<p> </p>
<p>i have resolved the issue added an another systemd service that will be executed after the execution of the carbonio-certbot.timer:<br /><br />You have to create the file " <span style="color:#aaa">removed link</span> " with this content:</p>
<p> </p>
<p><br />Description=Post-renew tasks for Carbonio<br />After=carbonio-certbot.service<br />Requires=carbonio-certbot.service<br /><br /><br />Type=oneshot<br />User=root<br />ExecStartPre=/bin/su -s /bin/bash zextras -c "/opt/zextras/libexec/zmproxyconfgen"<br />ExecStart=/bin/systemctl restart carbonio-proxy.target<br />ExecStartPost=/bin/systemctl restart carbonio-mta.target</p>
<p> </p>
<p>After that you have to reload all systemd daemon with this command:</p>
<p>systemctl daemon-reload</p>
<p> </p>
<p>And enable the service by typing:</p>
<p>systemctl enable carbonio-certbot-post.service</p>
<p> </p>
<p>I have the installation that use systemd instead of the single file to manage each service.</p>
<p> </p>
<p>I suppose that Carbonio Development team have to add this feature on the next update because if there is a timer to renew the certificate they have to deploy the certificate in the system too.</p>
<p> </p>
<p>Best regards</p>
<p> </p>
<p> </p>
<p> </p>]]></content:encoded>
						                            <category domain="https://community.zextras.com/forum/carbonio-general-thread/">Carbonio General</category>                        <dc:creator>devilofhell</dc:creator>
                        <guid isPermaLink="true">https://community.zextras.com/forum/carbonio-general-thread/automatic-renewal-of-lets-encrypt-certificates/#post-11051</guid>
                    </item>
				                    <item>
                        <title>RE: Automatic Renewal of Let&#039;s Encrypt Certificates</title>
                        <link>https://community.zextras.com/forum/carbonio-general-thread/automatic-renewal-of-lets-encrypt-certificates/#post-10950</link>
                        <pubDate>Tue, 19 Aug 2025 11:48:51 +0000</pubDate>
                        <description><![CDATA[ok I see that the renewal is working fine, but I dont really want to alway check up on the cert and SSH into the server to run the 
 
&quot;


zextras$ /opt/zextras/libexec/zmproxyconfgen
z...]]></description>
                        <content:encoded><![CDATA[
<p>@nembulus </p>
<p>You can automate the renewal of the Let's encrypt SSL certificate without any script. Please feel free to take a look at this segment of official documentation:</p>
<p><strong><a href="https://docs.zextras.com/carbonio-ce/html/admincli/management/letsencrypt.html#automatic-renewal" target="_blank" rel="noopener">Let's Encrypt Automatic Renewal</a></strong></p>
<p>Let us know how it goes!</p>
<p><br /><br />ok I see that the renewal is working fine, but I dont really want to alway check up on the cert and SSH into the server to run the </p>
<p> </p>
<p>"</p>
<div class="highlight-console notranslate">
<div class="highlight">
<pre id="codecell9" contenteditable="false"><span class="go">zextras$ /opt/zextras/libexec/zmproxyconfgen</span>
<span class="go">zextras$ /opt/zextras/bin/zmproxyctl reload</span>
</pre>
<button class="copybtn o-tooltip--left" data-tooltip="Copy" data-clipboard-target="#codecell9"></button></div>
</div>
<p>"</p>
<p> </p>
<p>is there a way to run this via post hook ? </p>
<p>What is the recomended way so this just work.</p>
<p> </p>
<p>Also what about certs for the MTA and such on imaps, pops , and 465, 587 ? </p>
<p>Does that get replaced also ?</p>
<p> </p>
<p>Thanks ! </p>
<p> </p>
<p> </p>]]></content:encoded>
						                            <category domain="https://community.zextras.com/forum/carbonio-general-thread/">Carbonio General</category>                        <dc:creator>haffi</dc:creator>
                        <guid isPermaLink="true">https://community.zextras.com/forum/carbonio-general-thread/automatic-renewal-of-lets-encrypt-certificates/#post-10950</guid>
                    </item>
				                    <item>
                        <title>RE: Automatic Renewal of Let&#039;s Encrypt Certificates</title>
                        <link>https://community.zextras.com/forum/carbonio-general-thread/automatic-renewal-of-lets-encrypt-certificates/#post-10695</link>
                        <pubDate>Tue, 24 Jun 2025 13:27:00 +0000</pubDate>
                        <description><![CDATA[Where can i get actual way for automatic renew due the switch to systemd since 25.3?]]></description>
                        <content:encoded><![CDATA[<p>Where can i get actual way for automatic renew due the switch to systemd since 25.3?</p>]]></content:encoded>
						                            <category domain="https://community.zextras.com/forum/carbonio-general-thread/">Carbonio General</category>                        <dc:creator>svg</dc:creator>
                        <guid isPermaLink="true">https://community.zextras.com/forum/carbonio-general-thread/automatic-renewal-of-lets-encrypt-certificates/#post-10695</guid>
                    </item>
				                    <item>
                        <title>RE: Automatic Renewal of Let&#039;s Encrypt Certificates</title>
                        <link>https://community.zextras.com/forum/carbonio-general-thread/automatic-renewal-of-lets-encrypt-certificates/#post-10494</link>
                        <pubDate>Tue, 20 May 2025 08:39:54 +0000</pubDate>
                        <description><![CDATA[Hi @sharif ,
 
Thank you for your feedback, here is the result :
 
root@mail:~# certbot renewSaving debug log to  removed link - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -...]]></description>
                        <content:encoded><![CDATA[<p>Hi @sharif ,</p>
<p> </p>
<p>Thank you for your feedback, here is the result :</p>
<p> </p>
<p><span style="font-size: 8pt">root@mail:~# certbot renew</span><br /><span style="font-size: 8pt">Saving debug log to  <span style="color:#aaa">removed link</span> </span><br /><br /><span style="font-size: 8pt">- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -</span><br /><span style="font-size: 8pt">Processing  <span style="color:#aaa">removed link</span> </span><br /><span style="font-size: 8pt">- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -</span><br /><span style="font-size: 8pt">Certificate not yet due for renewal</span><br /><br /><span style="font-size: 8pt">- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -</span><br /><span style="font-size: 8pt">Processing  <span style="color:#aaa">removed link</span> </span><br /><span style="font-size: 8pt">- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -</span><br /><span style="font-size: 8pt">Certificate not yet due for renewal</span><br /><br /><span style="font-size: 8pt">- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -</span><br /><span style="font-size: 8pt">The following certificates are not due for renewal yet:</span><br /><span style="font-size: 8pt"> <span style="color:#aaa">removed link</span>  expires on 2025-08-18 (skipped)</span><br /><span style="font-size: 8pt"> <span style="color:#aaa">removed link</span>  expires on 2025-08-18 (skipped)</span><br /><span style="font-size: 8pt">No renewals were attempted.</span><br /><span style="font-size: 8pt">- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -</span></p>
<p> </p>
<p>This is letsencrypt.log : </p>
<p> </p>
<p><span style="font-size: 8pt">root@mail:~# cat  <span style="color:#aaa">removed link</span> </span><br /><span style="font-size: 8pt">2025-05-20 08:34:23,328:DEBUG:urllib3.connectionpool:http://localhost:None "GET /v2/connections?snap=certbot&amp;interface=content HTTP <span style="color:#aaa">removed link</span> " 200 97</span><br /><span style="font-size: 8pt">2025-05-20 08:34:23,468:DEBUG:certbot._internal.main:certbot version: 3.3.0</span><br /><span style="font-size: 8pt">2025-05-20 08:34:23,468:DEBUG:certbot._internal.main:Location of certbot entry point: /snap/certbot/4482/bin/certbot</span><br /><span style="font-size: 8pt">2025-05-20 08:34:23,468:DEBUG:certbot._internal.main:Arguments: </span><br /><span style="font-size: 8pt">2025-05-20 08:34:23,468:DEBUG:certbot._internal.main:Discovered plugins: PluginsRegistry(PluginEntryPoint#apache,PluginEntryPoint#manual,PluginEntryPoint#nginx,PluginEntryPoint#null,PluginEntryPoint#standalone,PluginEntryPoint#webroot)</span><br /><span style="font-size: 8pt">2025-05-20 08:34:23,480:DEBUG:certbot._internal.log:Root logging level set at 30</span><br /><span style="font-size: 8pt">2025-05-20 08:34:23,481:DEBUG:certbot._internal.display.obj:Notifying user: Processing  <span style="color:#aaa">removed link</span> </span><br /><span style="font-size: 8pt">2025-05-20 08:34:23,482:DEBUG:certbot._internal.plugins.selection:Requested authenticator None and installer None</span><br /><span style="font-size: 8pt">2025-05-20 08:34:23,489:INFO:certbot.ocsp:Cannot extract OCSP URI from  <span style="color:#aaa">removed link</span> </span><br /><span style="font-size: 8pt">2025-05-20 08:34:23,491:DEBUG:certbot._internal.display.obj:Notifying user: Certificate not yet due for renewal</span><br /><span style="font-size: 8pt">2025-05-20 08:34:23,491:DEBUG:certbot._internal.plugins.selection:Requested authenticator standalone and installer None</span><br /><span style="font-size: 8pt">2025-05-20 08:34:23,491:DEBUG:certbot._internal.display.obj:Notifying user: Processing  <span style="color:#aaa">removed link</span> </span><br /><span style="font-size: 8pt">2025-05-20 08:34:23,492:DEBUG:certbot._internal.plugins.selection:Requested authenticator None and installer None</span><br /><span style="font-size: 8pt">2025-05-20 08:34:23,498:INFO:certbot.ocsp:Cannot extract OCSP URI from  <span style="color:#aaa">removed link</span> </span><br /><span style="font-size: 8pt">2025-05-20 08:34:23,499:DEBUG:certbot._internal.display.obj:Notifying user: Certificate not yet due for renewal</span><br /><span style="font-size: 8pt">2025-05-20 08:34:23,499:DEBUG:certbot._internal.plugins.selection:Requested authenticator standalone and installer None</span><br /><span style="font-size: 8pt">2025-05-20 08:34:23,499:DEBUG:certbot._internal.display.obj:Notifying user: </span><br /><span style="font-size: 8pt">- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -</span><br /><span style="font-size: 8pt">2025-05-20 08:34:23,499:DEBUG:certbot._internal.display.obj:Notifying user: The following certificates are not due for renewal yet:</span><br /><span style="font-size: 8pt">2025-05-20 08:34:23,500:DEBUG:certbot._internal.display.obj:Notifying user:  <span style="color:#aaa">removed link</span>  expires on 2025-08-18 (skipped)</span><br /><span style="font-size: 8pt"> <span style="color:#aaa">removed link</span>  expires on 2025-08-18 (skipped)</span><br /><span style="font-size: 8pt">2025-05-20 08:34:23,500:DEBUG:certbot._internal.display.obj:Notifying user: No renewals were attempted.</span><br /><span style="font-size: 8pt">2025-05-20 08:34:23,500:DEBUG:certbot._internal.display.obj:Notifying user: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -</span><br /><span style="font-size: 8pt">2025-05-20 08:34:23,500:DEBUG:certbot._internal.renewal:no renewal failures</span></p>
<p> </p>
<p> </p>
<p>Thank you for your help.</p>
<p> </p>
<p> </p>
<p> </p>]]></content:encoded>
						                            <category domain="https://community.zextras.com/forum/carbonio-general-thread/">Carbonio General</category>                        <dc:creator>nembulus</dc:creator>
                        <guid isPermaLink="true">https://community.zextras.com/forum/carbonio-general-thread/automatic-renewal-of-lets-encrypt-certificates/#post-10494</guid>
                    </item>
				                    <item>
                        <title>RE: Automatic Renewal of Let&#039;s Encrypt Certificates</title>
                        <link>https://community.zextras.com/forum/carbonio-general-thread/automatic-renewal-of-lets-encrypt-certificates/#post-10487</link>
                        <pubDate>Mon, 19 May 2025 07:32:08 +0000</pubDate>
                        <description><![CDATA[@nembulus 
You can automate the renewal of the Let&#039;s encrypt SSL certificate without any script. Please feel free to take a look at this segment of official documentation:
Let&#039;s Encrypt Au...]]></description>
                        <content:encoded><![CDATA[<p>@nembulus </p>
<p>You can automate the renewal of the Let's encrypt SSL certificate without any script. Please feel free to take a look at this segment of official documentation:</p>
<p><strong><a href="https://docs.zextras.com/carbonio-ce/html/admincli/management/letsencrypt.html#automatic-renewal" target="_blank" rel="noopener">Let's Encrypt Automatic Renewal</a></strong></p>
<p>Let us know how it goes!</p>]]></content:encoded>
						                            <category domain="https://community.zextras.com/forum/carbonio-general-thread/">Carbonio General</category>                        <dc:creator>Sharif</dc:creator>
                        <guid isPermaLink="true">https://community.zextras.com/forum/carbonio-general-thread/automatic-renewal-of-lets-encrypt-certificates/#post-10487</guid>
                    </item>
				                    <item>
                        <title>RE: Automatic Renewal of Let&#039;s Encrypt Certificates</title>
                        <link>https://community.zextras.com/forum/carbonio-general-thread/automatic-renewal-of-lets-encrypt-certificates/#post-10485</link>
                        <pubDate>Sun, 18 May 2025 03:15:11 +0000</pubDate>
                        <description><![CDATA[Hi,
 
I have following error regarding that script.
Virtual Hostnames set for all domains.ERROR: account.NO_SUCH_SERVER (no such server: mail)zimbraReverseProxyMailMode set to redirect.St...]]></description>
                        <content:encoded><![CDATA[<p>Hi,</p>
<p> </p>
<p>I have following error regarding that script.</p>
<p>Virtual Hostnames set for all domains.<br />ERROR: account.NO_SUCH_SERVER (no such server: mail)<br />zimbraReverseProxyMailMode set to redirect.<br />Stopping proxy...done.<br />Starting proxy...done.<br />zmproxyctl restarted.<br />Saving debug log to <span style="color: #aaa">removed link</span> <br />Simulating a certificate request for mail.xxxxx.id<br /><br />Certbot failed to authenticate some domains (authenticator: webroot). The Certificate Authority reported these problems:<br />Domain: mail.xxxxxxxid<br />Type: connection<br />Detail: 103.163.161.xx: Fetching <span style="color: #aaa">removed link</span> : Connection refused<br /><br />Hint: The Certificate Authority failed to download the temporary challenge files created by Certbot. Ensure that the listed domains serve their content from the provided --webroot-path/-w and that files created there can be downloaded from the internet.<br /><br />Some challenges have failed.<br />Ask for help or search for solutions at <span style="color: #aaa">removed link</span> See the logfile <span style="color: #aaa">removed link</span> or re-run Certbot with -v for more details.<br />Certificate obtained for domain txxxxi.id<br />Saving debug log to <span style="color: #aaa">removed link</span> <br />Simulating a certificate request for mail.yyyyyyy.com<br /><br />Certbot failed to authenticate some domains (authenticator: webroot). The Certificate Authority reported these problems:<br />Domain: mail.yyyyy.com<br />Type: connection<br />Detail: 103.163.161.xxx: Fetching <span style="color: #aaa">removed link</span> : Connection refused</p>
<p> </p>
<p> </p>
<p>Any advice to resolve this ?</p>
<p>Thank you in advanced.</p>
<p> </p>
<p> </p>
<p> </p>]]></content:encoded>
						                            <category domain="https://community.zextras.com/forum/carbonio-general-thread/">Carbonio General</category>                        <dc:creator>nembulus</dc:creator>
                        <guid isPermaLink="true">https://community.zextras.com/forum/carbonio-general-thread/automatic-renewal-of-lets-encrypt-certificates/#post-10485</guid>
                    </item>
				                    <item>
                        <title>RE: Automatic Renewal of Let&#039;s Encrypt Certificates</title>
                        <link>https://community.zextras.com/forum/carbonio-general-thread/automatic-renewal-of-lets-encrypt-certificates/#post-6078</link>
                        <pubDate>Fri, 13 Oct 2023 08:24:18 +0000</pubDate>
                        <description><![CDATA[thanks anahuac and 0x3f8 great job!]]></description>
                        <content:encoded><![CDATA[<p><span class="HwtZe"><span class="jCAhz ChMk0b"><span class="ryNqvb">thanks <a title="anahuac" href="https://community.zextras.com/participant/anahuac/">anahuac</a> and <a title="0x3f8" href="https://community.zextras.com/participant/0x3f8/">0x3f8</a> great job!</span></span></span></p>]]></content:encoded>
						                            <category domain="https://community.zextras.com/forum/carbonio-general-thread/">Carbonio General</category>                        <dc:creator>Bic</dc:creator>
                        <guid isPermaLink="true">https://community.zextras.com/forum/carbonio-general-thread/automatic-renewal-of-lets-encrypt-certificates/#post-6078</guid>
                    </item>
				                    <item>
                        <title>RE: Automatic Renewal of Let&#039;s Encrypt Certificates</title>
                        <link>https://community.zextras.com/forum/carbonio-general-thread/automatic-renewal-of-lets-encrypt-certificates/#post-6036</link>
                        <pubDate>Mon, 09 Oct 2023 19:01:44 +0000</pubDate>
                        <description><![CDATA[As promised here is a script to check your domain SSL certs and warn you via email if there are less than 15 days left.  Ideally the certbot will renew your certs when &lt;30 days remaining ...]]></description>
                        <content:encoded><![CDATA[<p>As promised here is a script to check your domain SSL certs and warn you via email if there are less than 15 days left.  Ideally the certbot will renew your certs when &lt;30 days remaining if you are using the crontab that @anahauc provided<br /><br /></p>
<p>Configure your crontab to run this is often as you like but keep in mind you'll get an email every time it runs.  Better yet, use a real solution like zabbix or checkmk to monitor your certificates. </p>
<p>Requirements: openssl and mailx</p>
<p> </p>
<pre contenteditable="false">#!/bin/bash
# Check for the number of days left before certificate expiration and restart Zimbra
# if there are less than 15 days remaining on the certificate
# Taken from
# https://sleeplessbeastie.eu/2017/04/03/how-to-display-days-till-certificate-expiration/

# temporary file to store certificate
certificate_file=$(mktemp)
host="mail.sampledomain.xyz"
sender="admin@sampledomain.xyz"
recipient="admin@sampledomain.xyz"
now=`/usr/bin/date`

# delete temporary file on exit
trap "unlink $certificate_file" EXIT

echo -n | /usr/bin/openssl s_client -servername "$host" -connect "$host":443 2&gt;/dev/null | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' &gt; $certificate_file
certificate_size=$(stat -c "%s" $certificate_file)
if ; then
  date=$(openssl x509 -in $certificate_file -enddate -noout | sed "s/.*=\(.*\)/\1/")
  date_s=$(date -d "${date}" +%s)
  now_s=$(date -d now +%s)
  date_diff=$(( (date_s - now_s) / 86400 ))
  if ; then
    echo "Certificate on $host has less than ${date_diff} days remaining, Check certbot renewal for errors" | /usr/bin/mail -a "From: $sender" -s "Domain Certificate Issue" $recipient # Certificate should have renewed by now
  else
    echo "SSL Certificate on $host has ${date_diff} days remaining, Nothing to do" | /usr/bin/mail -a "From: $sender" -s "Domain SSL Status OK" $recipient # ok
  fi
else
  echo "Error encountered processing certificate at ${now} on $host. Check Mailserver Status"  | /usr/bin/mail -a "From: $sender" -s "Mailserver Certificate Problem" $recipient
fi</pre>
<p><br /><br /><br /></p>]]></content:encoded>
						                            <category domain="https://community.zextras.com/forum/carbonio-general-thread/">Carbonio General</category>                        <dc:creator>0x3f8</dc:creator>
                        <guid isPermaLink="true">https://community.zextras.com/forum/carbonio-general-thread/automatic-renewal-of-lets-encrypt-certificates/#post-6036</guid>
                    </item>
				                    <item>
                        <title>RE: Automatic Renewal of Let&#039;s Encrypt Certificates</title>
                        <link>https://community.zextras.com/forum/carbonio-general-thread/automatic-renewal-of-lets-encrypt-certificates/#post-6029</link>
                        <pubDate>Mon, 09 Oct 2023 15:51:49 +0000</pubDate>
                        <description><![CDATA[@anahuac , great article and great job! Added to my bookmarks!]]></description>
                        <content:encoded><![CDATA[@anahuac , great article and great job! Added to my bookmarks!]]></content:encoded>
						                            <category domain="https://community.zextras.com/forum/carbonio-general-thread/">Carbonio General</category>                        <dc:creator>MAX</dc:creator>
                        <guid isPermaLink="true">https://community.zextras.com/forum/carbonio-general-thread/automatic-renewal-of-lets-encrypt-certificates/#post-6029</guid>
                    </item>
				                    <item>
                        <title>RE: Automatic Renewal of Let&#039;s Encrypt Certificates</title>
                        <link>https://community.zextras.com/forum/carbonio-general-thread/automatic-renewal-of-lets-encrypt-certificates/#post-6006</link>
                        <pubDate>Mon, 09 Oct 2023 13:23:10 +0000</pubDate>
                        <description><![CDATA[I wrote a tutorial about it yesterday... hope it helps
Let’s Encrypt on Carbonio – Easy as never before]]></description>
                        <content:encoded><![CDATA[<p>I wrote a tutorial about it yesterday... hope it helps</p>
<p><a href="https://www.anahuac.eu/lets-encrypt-on-carbonio-easy-as-never-before/" target="_blank" rel="noopener">Let’s Encrypt on Carbonio – Easy as never before</a></p>]]></content:encoded>
						                            <category domain="https://community.zextras.com/forum/carbonio-general-thread/">Carbonio General</category>                        <dc:creator>anahuac</dc:creator>
                        <guid isPermaLink="true">https://community.zextras.com/forum/carbonio-general-thread/automatic-renewal-of-lets-encrypt-certificates/#post-6006</guid>
                    </item>
							        </channel>
        </rss>
		