Re: spam assassin install/test
On Mon, Jul 15, 2002 at 10:34:19AM -0400, John F Davis wrote:
> I did a apt-get install spamassassin and I edited
> /etc/default/spamassassin so that it was enabled. Then I ran the init
> script. What else do I need to do? I'm running exim. I sent myself
> two test emails. One containing three dollar signs in a row (to mimic
> spam) and the other just plain text. I received the plain email
> quickly, but about an hour later, I received the "spam" message. At
> first, I thought spamassassin had worked and had deleted the test spam
> message. Since it did not delete it, I must have not configured
> something. What would that part be?
> For what its worth, I didn't do the part about configuring spam
> assassin to run in .procmail. I thought it you install spamd, it
> invokes spam assassin globaly and there is notthing else to do.
No. SpamAssassin merely tags mails, it doesn't delete them; furthermore,
if you don't add rules to .procmailrc to run spamc as recommended,
SpamAssassin won't even be run at all.
You'll need to add the spamc rule to .procmailrc, and then add further
filtering rules to examine SpamAssassin's tags and sort mail
appropriately. I recommend not deleting mail automatically based on SA's
tags, at least not until you're comfortable with it; I sort into a
separate folder which I skim every day or two.
Here's the relevant part of my .procmailrc:
* ^X-Spam-Status: Yes
It should be possible to run spamassassin (or spamc) globally, but it
requires more work and isn't set up by default.
Colin Watson [firstname.lastname@example.org]
To UNSUBSCRIBE, email to email@example.com
with a subject of "unsubscribe". Trouble? Contact firstname.lastname@example.org