ConfigServer Services Blog

The latest version of Archive::Zip (v1.29) breaks MailScanner

If you receive the following error while attempting to start MailScanner:

Bareword “Cwd::getcwd” not allowed while “strict subs” in use at /usr/lib/perl5/site_perl/5.8.8/Archive/Zip.pm line 552. Compilation failed in require at /usr/mailscanner/lib/MailScanner/Message.pm line 48. BEGIN failed–compilation aborted at /usr/mailscanner/lib/MailScanner/Message.pm line 48. Compilation failed in require at /usr/mailscanner/bin/MailScanner line 107. BEGIN failed–compilation aborted at /usr/mailscanner/bin/MailScanner line 107.

then it’s likely Archive::Zip has upgraded to v1.29, which causes this problem.Edit (1st July 2009 08:20): The author of Archive::Zip has now released a bugfix for this issue and you can easily fix the issue with:

/scripts/perlinstaller –force Archive::Zip

Check that it installs v1.30 of the perl module, then restart MailScannerNote that if the cpan mirror you are using is stuck on v1.29 and will not update to 1.30, you will need to manually upgrade Archive::Zip:

wget http://search.cpan.org/CPAN/authors/id/A/AD/ADAMK/Archive-Zip-1.30.tar.gztar -xzf Archive-Zip-1.30.tar.gzcd Archive-Zip-1.30perl Makefile.PLmakemake install

New csf v4.73

Changes:

  • Added checks before Net::CIDR:Lite calls to ensure inputs are CIDR’s to prevent module failures
  • New feature – LF_CPANEL_ALERT. Send an email alert if anyone accesses WHM via root. An IP address will be reported again 1 hour after the last tracked access (or if lfd is restarted)

New csf v4.72

Changes:

  • Modified mail sending code to use a common procedure that copes better with differing combinations and variations of From:, To:, LF_ALERT_TO and LF_ALERT_FROM settings for lfd alerts

New csf v4.71

Changes:

  • Code speedups in csf –grep
  • Added csf.allow and GLOBAL_ALLOW lookups during lfd blocking and note added to alert if ip match found
  • Modified Server Check for Fedora v9 EOL now that Fedora v11 has been released
  • Modified iptables output from csf.pl to exclude the Fedora v11 intrapositioned negation messages
  • Fixed typo in integrity.txt alert template for new installations
  • Modified the email header for csf –mail
  • Fix Relay Tracking from 127.0.0.1 to always report as a LOCALRELAY
  • Modified lfd output filehandle names to avoid read/write conflicts
  • Added Advanced Allow/Deny Filters for csf.dyndns. See readme.txt for an example
  • Added new option CC_ALLOW_FILTER as an alternative to CC_ALLOW where only listed Country Codes are allowed, however normal port and packet filter rules are still applied to those connections. All other connections are dropped

New ClamAV v0.95.2

Changes:

This version improves handling of archives, adds support for –file-listin clamscan and clamdscan, and fixes various issues found in previousreleases.

New csf v4.70

Changes:

  • Modified UI access to csf.sips to display checkboxes instead of direct editing, for ease of use
  • Fixed problem where RELAYHOSTS setting wasn’t always being honoured
  • Modified mod_security configuration editor to handle HTML elements
  • Rewritten RT_*_ALERT regex and counting code to better deal with a variety of exim log output formats
  • Added recipient count to RT_*_ALERT to include emails sent to multiple recipients. This option requires that the exim log_selector setting in the exim configuration includes the option: +received_recipients So, the recommended log_selector setting is now:

New csf v4.69

Changes:

  • Added Gentoo support
  • Added Server Check for MySQL LOAD DATA LOCAL
  • Modified Server Check for enable_dl to check whether dl() is in disable_functions

New MailScanner Script v2.74

Changes:

  • New Mailscanner v4.76.24:http://www.mailscanner.info/ChangeLog
  • Changed default installation/update menu option to [2]
  • Modified mscpanel.pl script to skip invalid domain entries in localdomains and secondarymx

New MailScanner Front-End (MSFE) v4.28

Changes:

  • Removed unecessary steps in UI ClamAV Update
  • Improved mailwatch mysql database creation stability
  • Modified msbe.pl script to skip invalid domain entries in localdomains and secondarymx
  • Upgraded msbe.pl use of Cpanel::SafeFile