So I got this email from my server this morning after update of ubuntu to 24.04 and Carbonio to newest.
Cron <zextras@mail> . /opt/zextras/.bashrc; /opt/zextras/libexec/zmsaupdate
zmsaupdate: Amavisd restart failed!
So I checked zmsaupdate
and in line 49
we have this
my $restart="/opt/zextras/bin/zmamavisdctl restart norewrite >/dev/null 2>&1";
I changed it to, since it gives "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."
my $restart="/bin/systemctl restart carbonio-mta.target >/dev/null 2>&1";
This does also not work since Zextra cannot run
/bin/systemctl restart carbonio-mta.target
it need escilation...
I think someone forgot this in the upgrade.
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!).
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.
But you have correctly pointed that zmamavisdctl restart 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.
I will share this with our devs.
Regards,