Symptoms
After updating to cPanel & WHM version 132, the MailScanner service is failing to start with the following errors being reported:
systemd[1]: Starting MailScanner AntiSpam and AntiVirus...
MailScanner[84484]: [555B blob data]
MailScanner[84484]: BEGIN failed--compilation aborted at /usr/mailscanner/usr/sbin/MailScanner line 90.
systemd[1]: MailScanner.service: Control process exited, code=exited status=2
systemd[1]: MailScanner.service: Failed with result 'exit-code'.
systemd[1]: Failed to start MailScanner AntiSpam and AntiVirus.
Description
We've opened an internal case for our development team to investigate this further. For reference, the case number is CPANEL-50201. Follow this article to receive an email notification when a solution is published in the product.
Workaround
-
Create a backup of the local.versions file:
cp -a /var/cpanel/rpm.versions.d/local.versions{,.bak} -
Add the new target_setting for "perl542-mailscanner":
/usr/local/cpanel/scripts/update_local_rpm_versions --add target_settings.perl542-mailscanner installed -
Remove the old target_setting for "perl536-mailscanner":
/usr/local/cpanel/scripts/update_local_rpm_versions --del target_settings.perl536-mailscanner -
Update the cPanel provided packages with the following command:
/scripts/check_cpanel_pkgs --fix -
Check the status of the MailScanner service, and restart the service to bring it back online:
systemctl status MailScanner systemctl restart MailScanner