![]() The first option you want to look for is the SPAM score option. The main configuration file for Spamassassin is /etc/spamassassin/local.cf. You will have to do some configuration in both Spamassassin and Postfix. Allow apt to install the dependencies.Īfter Spamassassin is installed you are ready to begin the configuration. There may be some dependencies (this will be determined by what you already have installed on your machine). You will have to give your sudo password for the installation to continue. The first step is to install Spamassassin. So the very first step is to open up that terminal window and get ready to do a bit of typing (or copy/pasting). The installation of Spamassassin I am going to show you will be done completely in command line. It’s a good system and has worked well for me (and many, many others) for years.¬† A SPAM score is actually calculated from multiple characteristics that together combine for a 0-5 score. Of course it’s not as simple as thinking 0 means 0% SPAM. A setting of 3.5 is safe enough to reduce what is called a false-positive (this means a piece of HAM is marked as SPAM) as well as reduce the amount of SPAM that actually makes it through. The setting 0 will pretty much let everything through and the setting 5 will pretty much let very little through. After testing a header (X-Spam-Status:) is marked with a number ranging from 0-5. ![]() Spamassassin let’s this mail in and then compares it against various tests. Often this email is advertising various enhancement drugs, porn, or someone from South Africa saying they are the benefactor of a bajillionaire and have picked YOU as their heir (just give them your bank account number). That is what SPAM is – email you receive (for whatever reason) that you don’t want. The advertisements, the offers for credit cards…those wasted resources that always get tossed without reading. You can think of SPAM as all of those useless flyers you get in the mail. This article will assume you already have Postfix up and running.īefore we get into the dirty bits of the installation, I thought it would be wise to describe SPAM and how SPAM is scored with Spamassassin. Like the previous article, this installation will be done on a Ubuntu Server 10.04 release. And in this article I am going to show you how to add Spamassassin to your already working Postfix mail server. It’s reliable, trustworthy, and simple to install and configure. Spamassassin uses numbers tests (both local and on line) to determine if a mail is SPAM or HAM (not SPAM). But how do you stop it? The best way? Spamassassin. The last thing you need is to be serving all your users plate after plate of SPAM delight. The problem is, if you have a mail server, you can almost guarantee that SPAM will find its way in (and out if your not careful). But wait – who WANTS to serve up SPAM? No one (at least no one with good intentions). That mail server will work so well it’ll server up all the email and SPAM you want. After following that article you should have a working, reliable mail server. The updated file /etc/exim4/ becomes active by running the following line: nf & service exim4 restartįor a basic protection, the MTA is now good to go.In my last article I introduced you to the installation and configuration of a Postfix mail server (see “ Install and configure a Postfix mail server“). ![]() So for production use, changing the following line to zero is advised: SAEximDebug: 0 Comment the following line in that file: # SAEximRunCond: 0 To enable Exim's spamassassin connector, the file /etc/exim4/nf has to be modified. Now in /etc/exim4/, insert the following lines in MAIN CONFIGURATION SETTINGS: local_scan_path = /usr/lib/exim4/local_scan/sa-exim.so To check if spamassassin runs smoothly on it's dedicated port, this command helps: lsof -i :783 In order to check if the first steps went ok, it's time to start spamassassin the very first time: service spamassassin start The second one defines that spamassassin's rules become updated each night using a cron job. The first option lets the spamassassin daemon start on boot. In /etc/default/spamassassin set the following lines: ENABLED=1 Assuming an otherwise working Exim 4 setup, this document describes just the essential steps to a working spamscanner.įirst, the necessary packages need to be installed: aptitude install exim4-daemon-heavy sa-exim spamassassin This article describes the configuration of the spam scanner called spamassassin in conjunction with the MTA called Exim 4 in Ubuntu Linux (as of writing Ubuntu 11.10 is the most recent). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |