Current Issue


Table of contents

CD-ROM

Sys Admin and The Perl Journal CD-ROM version 12.0

Version 12.0 delivers every issue of Sys Admin from 1992 through 2006 and every
issue of The Perl Journal from 1996-2002 in one convenient CD-ROM!

Order now!

Sys Admin Magazine > Archives > 2003 > February

Swimming with the Spammers

Phillip Tiburcio

For a long time, my various email accounts did their work quietly and effectively; then I began receiving a large volume of spam every day. I was being crushed under the weight of spam, so I fought back with a personal email server built entirely with free tools and reduced my spam intake by 95%. Although this article describes a personal email setup, the tools mentioned can be applied to other environments.

Bill of Materials

My plan was to build a server that would download all my email accounts, scrub them for spam, sort them into appropriate mail folders, then make everything available via imap/ssl or encrypted Webmail. The integration of several free tools makes this possible on my personal Linux server.

Spamassasin and Vipul's Razor scrub mail for spam using a distributed spam-signature Internet hive mind. A free Perl script called Gotmail can download messages from a Hotmail account via HTTP. Another script called Fetchyahoo does the same for any Yahoo account. Fetchmail rounds out the bunch by downloading mail from various POP accounts I've collected through the years, and Squirrelmail provides a Webmail gateway using Apache and PHP. A few procmail rules sort the incoming mail into appropriate subfolders and relegate spam suspects to a separate folder. An old Pentium III machine running Red Hat Linux was pressed into service to act as the foundation for this host of utilities. Any of the various BSD flavors or Solaris would have worked as well.

Network Setup

A DSL connection provides the Internet connection to my home LAN via a Linksys DSL Router. I configured the DSL router to allow inbound SMTP, ssh, http, and https traffic to the Linux machine. Note that some revisions of the Linksys firmware have terrible upload performance unless you tune the Maximum Transmission Unit (MTU) size parameter in its configuration.




MarketPlace

Build IT Knowledge with Current & Trusted Content
Helps Employees Develop & Hone New Technical Programming Skills. Sign Up & Get Full Access.

Villanova University Six Sigma & IT Certificate Programs
100% Online programs in Six Sigma, IS Security, CISSP Prep, Business Analysis, Proj. Mgmt. and more!

Workflow Enabled Help Desk & IT Service Management
Automate service desk activities and integrate processes across IT. Learn more here.

Flowcharts from C/C++ code -- Free trial download
Understand C/C++ code in less time. A new team member ? Inherited legacy code ? Get up to speed faster with Crystal Flow for C/C++. Code-formatting improves readability. Flowcharts are integrated with code browser. Export flowcharts to Visio.

Wanna see your ad here?