Quick Install of DecodeShortURLs plugin

jesse's picture

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.

Tags: 

Services: 

Add new comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.