MailScanner Service not started – Compress::Raw::Zlib


MailScanner service was not started properly. Error log shows Compress::Raw::Zlib required.

 #service MailScanner status
Checking MailScanner daemons:
MailScanner:                                      [FAILED]
incoming sendmail:                                [  OK  ]
outgoing sendmail:                                [  OK  ]
While debugging the Mali scanner error following error was printed.

Error Message:

# MailScanner –lint –debu
Compress::Raw::Zlib version 2.062 required–this is only version 2.03 at /usr/lib/perl5/Compress/Zlib.pm line 11.
BEGIN failed–compilation aborted at /usr/lib/perl5/Compress/Zlib.pm line 11.
Compilation failed in require at /usr/lib/MailScanner/MailScanner/SA.pm line 42.
BEGIN failed–compilation aborted at /usr/lib/MailScanner/MailScanner/SA.pm line 42.
Compilation failed in require at /usr/sbin/MailScanner line 110.
BEGIN failed–compilation aborted at /usr/sbin/MailScanner line 110.

Solution:

Install the compress Zlib package

#cpan install Compress::Zlib
#service MailScanner restart