You can use the SpamAssassin DecodeShortURLs plugin to improve your spam scanning, here's a quick install.
As root:
cd /etc/spamassassin/ wget https://raw.github.com/smfreegard/DecodeShortURLs/master/DecodeShortURLs.cf wget https://raw.github.com/smfreegard/DecodeShortURLs/master/DecodeShortURLs.pm cat <<EOF >>local.pre # DecodeShortURLs plugin loadplugin Mail::SpamAssassin::Plugin::DecodeShortURLs DecodeShortURLs.pm url_shortener_cache /var/lib/amavis/DecodeShortURLs.sq3 EOF echo 'url_shortener_cache /var/lib/amavis/DecodeShortURLs.sq3' >> local.cf aptitude install libdbd-sqlite3-perl service amavis restart
This works on Debian with amavisd-new, adjust the commands/paths as needed for other systems.
Add new comment