MailScanner

SpamAssassin v3.2.0 can cause very high loads in MailScanner

There is a bug in many rules that used to work fine for versions of SpamAssassin prior to v3.2.0. This new release affects some regex traps when non-ascii characters are pushed through them. The generated error causes the SpamAssassin checks in MailScanner to loop which can result in extraordinary high server loads.The included SpamAssassin rules with v3.2.0 appear to be fine (to our knowledge at present) but some third-party ones are not. These include some from the SARE repository used by the openprotect service:http://www.gossamer-threads.com/lists/spamassassin/users/100450It’s worth noting that we have only seen this issue arise on one server so far since the release of SpamAssassin v3.2.0.If you experience this problem, or want to avoid it, you will have to disable the openprotect rules from our MailScanner package script /root/sa_rules.shYou can do this by commenting out the appropriate line so that the file looks like:

#!/bin/sh/usr/bin/sa-update#/usr/bin/sa-update –nogpg –channel saupdates.openprotect.com/sbin/service MailScanner reload

You then need to remove any download rules using:

rm -Rfv /var/lib/spamassassin/3.002000/saupdates_openprotect_com/

You can then re-enable by removing the # in the openprotect line in /root/sa_rules.sh once these issues have been fixed.Of course, the downside to all this is that SpamAssassin will be less able to assign higher scores to likely spam.

New Vipul's Razor Released

A new version of Vipul’s Razor has been released:http://sourceforge.net/project/shownotes.php?release_id=507010Those running MailScanner should upgrade to benefit from the changes.Upgrade instructions:

wget http://prdownloads.sourceforge.net/razor/razor-agents-2.83.tar.bz2tar -xjf razor-agents-*cd razor-agents-*perl Makefile.PL makemake installcd ..razor-admin -createrazor-admin -register/bin/rm -Rf razor-agents-*

New MailScanner Front-End (MSFE) v4.11

Changes:

  • Modified to work with cPanel v11 new theme API and new WHM theme style. This version will only work with cPanel v11 and cannot be upgraded to from cPanel v10. Third party themes need to properly support the new v11 theme API to work. If MailScanner doesn’t appear then you need to contact your third party theme developer and ask them to fully support the cPanel v11 API (i.e. including cPanel Plugins)
  • Fixed issue with saving cPanel User Settings in WHM for the alternative email address for the spam forwarder

MailScanner disabled after cPanel upgrade to v11

If you find MailScanner is disabled after upgrading to v11 of cPanel (esp. since v11 is now in CURRENT) then run the following:

/scripts/buildeximconf/scripts/mailscannerupdateservice exim restart

That should get things working again. We will be releasing a new version of MSFE soon to support the new v11 theme API.

New ClamAV v0.90.2

ClamAV have released a new version with security fixes. It is advised that everyone upgrade to this new version, which you can now do through the MailScanner WHM UI.

Changes in this release include some security fixes in CHM, CAB and PDF code and better handling of network problems in freshclam.Please see ChangeLog for complete list of changes. **Important note**: on April 16th CHM, CAB and PDF handlers will be disabled for 0.90 and 0.90.1 users through the dynamic engine configuration module (DCONF). Please upgrade to 0.90.2 immediately.

New MailScanner Script v2.52

Changes:

  • Compatibility fixes between MailScanner and the new ClamAV v0.9* freshclam update system

New ClamAV v0.90.1

ClamAV have released a new version that fixes a raft of things that they broke with the v0.90 release a few days ago. We will be releasing a new version of the MailScanner installer script shortly that fixes an incompatibility in MailScanner with the new v0.9* version of ClamAV.

New Mail::ClamAV v0.20

The day we release a patch workaround the Mail::ClamAV developer has finally released fixed code for ClamAV v0.90. It will take some time to get around all the cpan.org mirrors, but you can install it from source easily enough and then revert to virus scanners = clamavmodule in MailScanner.conf

wget http://cpan.pair.com/authors/id/S/SA/SABECK/Mail-ClamAV-0.20.tar.gztar -xzf Mail-ClamAV-0.20.tar.gz cd Mail-ClamAV-0.20perl Makefile.PL makemake installpico -w /usr/mailscanner/etc/MailScanner.conf

Virus Scanners = clamavmodule

service MailScanner restart

New ClamAV v0.90

We have previously guarded against upgrading to this latest version of ClamAV as the developer of the perl module Mail::ClamAV has not updated his code to support this updated version of the ClamAV engine.However, vulnerabilities have now been published for versions of ClamAV prior to v0.90 so it seems prudent to upgrade to it now.To do this we have repackaged the ClamAV v0.90 distribution and added code to convert MailScanner to use clamav instead of clamavmodule for its Virus Scanner.The downside of this change is that there is a potential increase in server load over using the perl module method.You can upgrade now through the WHM MailScanner UI. You can ignore the Mail::ClamAV errors at the bottom of the installation procedure, but do make sure that MailScanner starts correctly and send a test message through your system (check /var/log/maillog).For anyone using MailScanner without our Front-End, you can upgrade using the same repackaged distribution with…

wget http://license.configserver.com/clamav-0.90.tar.gztar -xzf clamav-*cd clamav-*./configure –disable-zlib-vcheckmakemake installreplace “Example” “#Example” — /usr/local/etc/freshclam.confreplace “Example” “#Example” — /usr/local/etc/clamd.conffreshclamcd ../bin/rm -Rf clamav-*service MailScanner restart

Do not upgrade to ClamAV v0.90

Don’t be tempted to upgrade to ClamAV v0.90 if you are running MailScanner. The Mail::ClamAV perl module is incompatible with it at this time, so you will have to stick with ClamAV v0.87 (why can’t they develop these things to be backwards compatible?). Hopefully the Mail::ClamAV developer will fix this soon. If you must use v0.90 then you’ll have to set virus scanners = clamav in MailScanner.conf