<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[iRedMail — bash script for "/usr/bin/sys" in /etc/letsencrypt/renewal-hooks/post]]></title>
		<link>https://forum.iredmail.org/topic20805-bash-script-for-usrbinsys-in-etcletsencryptrenewalhookspost.html</link>
		<atom:link href="https://forum.iredmail.org/feed-rss-topic20805.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in bash script for "/usr/bin/sys" in /etc/letsencrypt/renewal-hooks/post.]]></description>
		<lastBuildDate>Sun, 02 Mar 2025 08:08:01 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: bash script for "/usr/bin/sys" in /etc/letsencrypt/renewal-hooks/post]]></title>
			<link>https://forum.iredmail.org/post90463.html#p90463</link>
			<description><![CDATA[<p>Hi Zhang,</p><p>Thank you for the reply.</p><p>I set it up now as per this - <a href="https://eff-certbot.readthedocs.io/en/latest/using.html#automated-renewals.">https://eff-certbot.readthedocs.io/en/l … -renewals.</a></p><p>I believe we should update this doc - <a href="https://docs.iredmail.org/letsencrypt.html">https://docs.iredmail.org/letsencrypt.html</a><br />I understand if we setup another cron job, certbot sill works properly according to their documentations,</p><div class="quotebox"><cite>ZhangHuangbin wrote:</cite><blockquote><p>It should work as it&#039;s mentioned on official doc:<br /><a href="https://eff-certbot.readthedocs.io/en/latest/using.html">https://eff-certbot.readthedocs.io/en/latest/using.html</a></p></blockquote></div>]]></description>
			<author><![CDATA[null@example.com (mathewfer)]]></author>
			<pubDate>Sun, 02 Mar 2025 08:08:01 +0000</pubDate>
			<guid>https://forum.iredmail.org/post90463.html#p90463</guid>
		</item>
		<item>
			<title><![CDATA[Re: bash script for "/usr/bin/sys" in /etc/letsencrypt/renewal-hooks/post]]></title>
			<link>https://forum.iredmail.org/post90461.html#p90461</link>
			<description><![CDATA[<p>It should work as it&#039;s mentioned on official doc:<br /><a href="https://eff-certbot.readthedocs.io/en/latest/using.html">https://eff-certbot.readthedocs.io/en/latest/using.html</a></p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Sun, 02 Mar 2025 01:06:39 +0000</pubDate>
			<guid>https://forum.iredmail.org/post90461.html#p90461</guid>
		</item>
		<item>
			<title><![CDATA[bash script for "/usr/bin/sys" in /etc/letsencrypt/renewal-hooks/post]]></title>
			<link>https://forum.iredmail.org/post90459.html#p90459</link>
			<description><![CDATA[<p>Hi iRedmail team,</p><p>For let&#039;s encrypt cert renewal, I see there is a service &quot;service certbot status&quot; and I also see a folder &quot;/etc/letsencrypt/renewal-hooks/post&quot; which is empty after fresh iRedMail-1.7.2 install.</p><p>Also I see this line &quot;1 3 * * * certbot certificates; certbot renew --post-hook &#039;ln -sf /etc/letsencrypt/live/&lt;domain&gt;/privkey.pem /etc/ssl/private/iRedMail.key; /usr/bin/systemctl restart postfix dovecot nginx&#039; &quot; in &quot;<a href="https://docs.iredmail.org/letsencrypt.html">https://docs.iredmail.org/letsencrypt.html</a>&quot;.</p><p>Question: <br />Instead of setting up a cron job, is it possible to setup a bash script in &quot;/etc/letsencrypt/renewal-hooks/post&quot; as below?</p><div class="codebox"><pre><code>#!/bin/bash
/usr/bin/systemctl restart postfix dovecot nginx</code></pre></div><p>I believe this will work as post-hook to restart &quot;postfix dovecot nginx&quot; after certificate renew.</p><p>Anyone tried this and worked or should we still use the CRON as in the &quot;<a href="https://docs.iredmail.org/letsencrypt.html">https://docs.iredmail.org/letsencrypt.html</a>&quot;?</p><p>==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====<br />- iRedMail version (check /etc/iredmail-release): iRedMail-1.7.2<br />- Deployed with iRedMail Easy or the downloadable installer? - Downloadable installer<br />- Linux/BSD distribution name and version: Ubuntu 24.04.2 LTS<br />- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL<br />- Web server (Apache or Nginx): Nginx<br />- Manage mail accounts with iRedAdmin-Pro? No, iRedAdmin (none-pro)<br />- [IMPORTANT] Related original log or error message is required if you&#039;re experiencing an issue.<br />====</p>]]></description>
			<author><![CDATA[null@example.com (mathewfer)]]></author>
			<pubDate>Sun, 02 Mar 2025 00:46:55 +0000</pubDate>
			<guid>https://forum.iredmail.org/post90459.html#p90459</guid>
		</item>
	</channel>
</rss>
