<?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>
									zextras user cannot restart service without passswords, also scripts still using old method... - Carbonio General				            </title>
            <link>https://community.zextras.com/forum/carbonio-general-thread/zextras-user-cannot-restart-service-without-passswords-also-scripts-still-using-old-method-2/</link>
            <description>Zextras Community Discussion Board</description>
            <language>en-US</language>
            <lastBuildDate>Tue, 15 Sep 2026 15:15:27 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: zextras user cannot restart service without passswords, also scripts still using old method...</title>
                        <link>https://community.zextras.com/forum/carbonio-general-thread/zextras-user-cannot-restart-service-without-passswords-also-scripts-still-using-old-method-2/#post-11445</link>
                        <pubDate>Fri, 24 Oct 2025 17:20:19 +0000</pubDate>
                        <description><![CDATA[@sharif Hi!I have same problem, Ubuntu 24.04 with Carbonio 25.6.1.Is there already a solution for this?regards;]]></description>
                        <content:encoded><![CDATA[@sharif <br /><br />Hi!<br /><br />I have same problem, Ubuntu 24.04 with Carbonio 25.6.1.<br /><br />Is there already a solution for this?<br /><br />regards;]]></content:encoded>
						                            <category domain="https://community.zextras.com/forum/carbonio-general-thread/">Carbonio General</category>                        <dc:creator>CarC</dc:creator>
                        <guid isPermaLink="true">https://community.zextras.com/forum/carbonio-general-thread/zextras-user-cannot-restart-service-without-passswords-also-scripts-still-using-old-method-2/#post-11445</guid>
                    </item>
				                    <item>
                        <title>RE: zextras user cannot restart service without passswords, also scripts still using old method...</title>
                        <link>https://community.zextras.com/forum/carbonio-general-thread/zextras-user-cannot-restart-service-without-passswords-also-scripts-still-using-old-method-2/#post-10839</link>
                        <pubDate>Tue, 22 Jul 2025 08:05:20 +0000</pubDate>
                        <description><![CDATA[@betoceni 
Our devs are aligned with this issue. I sincerely thank you for taking your time and effort to point out this to us&#x1f64f;]]></description>
                        <content:encoded><![CDATA[<p>@betoceni </p>
<p>Our devs are aligned with this issue. I sincerely thank you for taking your time and effort to point out this to us&#x1f64f; </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/zextras-user-cannot-restart-service-without-passswords-also-scripts-still-using-old-method-2/#post-10839</guid>
                    </item>
				                    <item>
                        <title>RE: zextras user cannot restart service without passswords, also scripts still using old method...</title>
                        <link>https://community.zextras.com/forum/carbonio-general-thread/zextras-user-cannot-restart-service-without-passswords-also-scripts-still-using-old-method-2/#post-10836</link>
                        <pubDate>Mon, 21 Jul 2025 15:37:27 +0000</pubDate>
                        <description><![CDATA[Also using carbonio version 25.6.1 (latest so far) on ubuntu 24.04&quot;/opt/zextras/bin/zmamavisdctl restart norewrite &gt;/dev/null 2&gt;&amp;1&quot; is a command built to work on older code of carb...]]></description>
                        <content:encoded><![CDATA[
<p>@haffi</p>
<p>Thanks for pointing this to us. I tried to check it on my test setup (CE 25.6.0 - Ubuntu 24.04), but could not generate the error you mentioned <span style="color: #000000"><em>(zmsaupdate: Amavisd restart failed!).</em></span></p>
<pre contenteditable="false">zextras@mail:~$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 24.04.2 LTS
Release:	24.04
Codename:	noble
zextras@mail:~$ 
zextras@mail:~$ /opt/zextras/libexec/zmsaupdate 
zextras@mail:~$ 
zextras@mail:~$ /bin/bash -c '/opt/zextras/.bashrc; /opt/zextras/libexec/zmsaupdate'
zextras@mail:~$ 
zextras@mail:~$ /opt/zextras/bin/zmamavisdctl restart norewrite
Services are now handled by systemd.

Enabled systemd targets:

  - carbonio-directory-server.target
  - carbonio-appserver.target
  - carbonio-proxy.target
  - carbonio-mta.target

Please check the documentation for further details.
Exiting.
</pre>
<p>But you have correctly pointed that <em>zmamavisdctl restart </em>is handled by systemd. Therefore, what is the impact of this parameter (on line 49 of zmsaupdate) within the script and on the whole operation. </p>
<p>I will share this with our devs. </p>
<p>Regards,</p>
<br /><br />
<p>Also using carbonio version 25.6.1 (latest so far) on ubuntu 24.04<br />"/opt/zextras/bin/zmamavisdctl restart norewrite &gt;/dev/null 2&gt;&amp;1" is a command built to work on older code of carbonio (zimbra) that didn't use systemd. Now that Carbonio uses systemd, the script doesn't reboot the service amavisd, that command only informs that it should be done via systemctl, also returning an error code 1 (silent).<br /><br />You can test this running manually the command:</p>
<pre contenteditable="false">/opt/zextras/bin/zmamavisdctl restart norewrite
echo $?</pre>
<p><br /><br />The output will be:</p>
<pre contenteditable="false">Services are now handled by systemd.

Enabled systemd targets:

- carbonio-directory-server.target
- carbonio-appserver.target
- carbonio-proxy.target
- carbonio-mta.target

Please check the documentation for further details.
Exiting.
1</pre>
<p><br /><br />Note the 1 at the end, that triggers the cron job to send an error e-mail.<br /><br /><a href="https://community.zextras.com/participant/sharif" target="_blank" rel="noopener">@sharif</a> You probably are receiving the e-mail, check your notification recipients.<br /><br />now...we could add zextras to sudoers to run a systemctl restart command but I would like to know beforehand which is the corret service that needs to be restarted nowadays:<br />carbonio-antivirus.service?<br />carbonio-clamav-sidecar.service?<br />carbonio-clamav-signature-provider-sidecar.service?<br />carbonio-mta-sidecar.service?<br />carbonio-mta.target?</p>
<p> </p>]]></content:encoded>
						                            <category domain="https://community.zextras.com/forum/carbonio-general-thread/">Carbonio General</category>                        <dc:creator>BetoCeni</dc:creator>
                        <guid isPermaLink="true">https://community.zextras.com/forum/carbonio-general-thread/zextras-user-cannot-restart-service-without-passswords-also-scripts-still-using-old-method-2/#post-10836</guid>
                    </item>
				                    <item>
                        <title>RE: zextras user cannot restart service without passswords, also scripts still using old method...</title>
                        <link>https://community.zextras.com/forum/carbonio-general-thread/zextras-user-cannot-restart-service-without-passswords-also-scripts-still-using-old-method-2/#post-10814</link>
                        <pubDate>Wed, 16 Jul 2025 08:08:05 +0000</pubDate>
                        <description><![CDATA[@haffi
Thanks for pointing this to us. I tried to check it on my test setup (CE 25.6.0 - Ubuntu 24.04), but could not generate the error you mentioned (zmsaupdate: Amavisd restart failed!)....]]></description>
                        <content:encoded><![CDATA[<p>@haffi</p>
<p>Thanks for pointing this to us. I tried to check it on my test setup (CE 25.6.0 - Ubuntu 24.04), but could not generate the error you mentioned <span style="color: #000000"><em>(zmsaupdate: Amavisd restart failed!).</em></span></p>
<pre contenteditable="false">zextras@mail:~$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 24.04.2 LTS
Release:	24.04
Codename:	noble
zextras@mail:~$ 
zextras@mail:~$ /opt/zextras/libexec/zmsaupdate 
zextras@mail:~$ 
zextras@mail:~$ /bin/bash -c '/opt/zextras/.bashrc; /opt/zextras/libexec/zmsaupdate'
zextras@mail:~$ 
zextras@mail:~$ /opt/zextras/bin/zmamavisdctl restart norewrite
Services are now handled by systemd.

Enabled systemd targets:

  - carbonio-directory-server.target
  - carbonio-appserver.target
  - carbonio-proxy.target
  - carbonio-mta.target

Please check the documentation for further details.
Exiting.
</pre>
<p>But you have correctly pointed that <em>zmamavisdctl restart </em>is handled by systemd. Therefore, what is the impact of this parameter (on line 49 of zmsaupdate) within the script and on the whole operation. </p>
<p>I will share this with our devs. </p>
<p>Regards,</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/zextras-user-cannot-restart-service-without-passswords-also-scripts-still-using-old-method-2/#post-10814</guid>
                    </item>
				                    <item>
                        <title>zextras user cannot restart service without passswords, also scripts still using old method...</title>
                        <link>https://community.zextras.com/forum/carbonio-general-thread/zextras-user-cannot-restart-service-without-passswords-also-scripts-still-using-old-method-2/#post-10809</link>
                        <pubDate>Tue, 15 Jul 2025 12:21:52 +0000</pubDate>
                        <description><![CDATA[So I got this email from my server this morning after update of ubuntu to 24.04 and Carbonio to newest.
 
Cron &lt;zextras@mail&gt; . /opt/zextras/.bashrc; /opt/zextras/libexec/zmsaupdate...]]></description>
                        <content:encoded><![CDATA[<p>So I got this email from my server this morning after update of ubuntu to 24.04 and Carbonio to newest.</p>
<p> </p>
<p><span>Cron &lt;zextras@mail&gt; . /opt/zextras/.bashrc; /opt/zextras/libexec/zmsaupdate</span></p>
<p><span>zmsaupdate: Amavisd restart failed!</span></p>
<p> </p>
<p>So I checked zmsaupdate</p>
<p>and in line 49 </p>
<p>we have this </p>
<p> </p>
<pre contenteditable="false">my $restart="/opt/zextras/bin/zmamavisdctl restart norewrite &gt;/dev/null 2&gt;&amp;1";</pre>
<p>I changed it to, since it gives "Services are now handled by systemd.<br /><br />Enabled systemd targets:<br /><br />- carbonio-directory-server.target<br />- carbonio-appserver.target<br />- carbonio-proxy.target<br />- carbonio-mta.target<br /><br />Please check the documentation for further details.<br />Exiting."</p>
<p> </p>
<p> </p>
<pre contenteditable="false">my $restart="/bin/systemctl restart carbonio-mta.target &gt;/dev/null 2&gt;&amp;1";</pre>
<p> </p>
<p>This does also not work since Zextra cannot run </p>
<p>/bin/systemctl restart carbonio-mta.target</p>
<p>it need escilation...</p>
<p>I think someone forgot this in the upgrade.</p>
<p> </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/zextras-user-cannot-restart-service-without-passswords-also-scripts-still-using-old-method-2/#post-10809</guid>
                    </item>
							        </channel>
        </rss>
		