Entries for the ‘Spam Filtering’ Category

Blocking countries other than the US in IPTables

Courtesy of Kyle! Pulls all ISO country codes except for the US and populates iptables with ALL ranges in those countries automatically. Setup a cron job (/etc/crontab) to run every week: @weekly /usr/local/bin/isoCodeBlockIptables.sh Put the isoCodeBlockIptables.sh in /usr/local/bin/ and chmod +x it. The script first backups up the existing config to /backup/iptables-last.txt first. After it [...]

Catching unsolicited bounces (backscatter) with SpamAssassin

From http://wiki.apache.org/spamassassin/VBounceRuleset The “Virus Bounce Ruleset” is a SpamAssassin ruleset to catch “backscatter”. Backscatter is mail you didn’t ask to receive, generated by legitimate, non-spam-sending systems in response to spam. Here are some examples, courtesy of Al Iverson: Misdirected “undeliverable email” bounce messages from spam runs, from mail servers who “accept then bounce” instead of [...]

Building a Poor Man’s Barracuda

This article will show you how to replicate most of the functionality of a Barracuda Spam Firewall. If you work at a company that has an IT budget, then by all means I recommend purchasing one of these devices. If your company has no budget or if you’re the adventurous learn it on your own [...]