This tutorial shows how to set up an Ubuntu Hardy Heron (8.04 LTS) based server as a spamfilter in Gateway mode. In the end, you will have a SpamSnake Gateway which will relay clean emails to your MTA. You will also be able to view your incoming queue, train your SpamSnake and carry out a few more advanced operations via MailWatch.
I cannot offer any guarantees that this will work for you, the same way it’s working for me.
I will use the following software:
Credit goes to the guys at HowToForge and the developers of MailScanner and MailWatch.
To install such a system you will need the following: