Recently I’ve starting getting more spam to my home email server, so I decided to find a solution for that. What I came up with was a project on sourceforge called ASSP. Although I ran into some problems I thought were cause by this program, but were in fact casued by a new anti-spam policy just implemented by my ISP. The process is a little long so I will continue my explanation below. Keep in mind this is written for Windows (this guide is written assuming that a current mail server is up and running).
First and foremost you want to make sure you backup your server. After that you’ll want to gather the software that you’ll need. You’ll need an installation of perl, I found mine at ActiveState. Installation of that is simple wizard based.
After getting that installed, you’ll need ASSP. You will need to extract the contents of the package to a simple directory like C:\ASSP. Then you will need to install ASSP as a service this is accomplished by running the perl script in the C:\assp directory called addservice.pl. Do this by opening a command prompt and typing perl.exe c:\assp\addservice.pl -i c:\ASSP exactly like this with the last ASSP capitialized. Don’t ask me I didn’t write the program I just figured this out after an hour of struggling with the service not starting. After the service is successfully installed run the perl script c:\assp\assp.pl to launch assp. After it finishes loading point your browser to http://127.0.0.1:55555 the default password is nospam4me with no username. When you access the front page click on the left no network setup and check the box labaled As a Service. Then close the browser, then close the command window that was left open after running assp.pl. Then go to services control panel and start the service.
Then ASSP should correctly start as a service and then you’ll be able to configure your mail server and ASSP to work together. The most important settings to pay attention to are under Network Setup, Relaying, and Test Mode.
Under Network Setup
- SMTP Destanation (this is the port number to tell your mail server to listen on I used 225
- As a Service (already explained)
- Accept All Mail (put ip addresses that you receive legitimate mail from)
- Local Domains (put domains that your mail server hosts)
Under Test Mode
- Check all boxes (filter hasn’t been trained yet and will delete legitimate emails other wise)
In your mail server all that needs to be changed is the port that it listens for smtp connections from the internet.
This will get you started up and running and collecting emails for your bayesian statistics. I will write a more advanced guide going over more of the advanced features.