save Harry Potter from the clutches of junk food
ornament
navigation
*
*
navigation
me
web development

Note: Pair has now integrated Spam Assassin into their systems, which makes this info sort of pointless. -Luke


I set up SpamAssassin on my shared account at pair in a way that takes advantage of procmail's ability to have command line arguments passed to it (man procmail and check out the -a flag). In this way, I can easily enable spam filtering for selected mailboxes and forward recipes. Here's what I did:

Installed SpamAssassin 2.44 to

/usr/home/USERNAME/local/usr
/usr/home/USERNAME/local/etc
Created two procmail recipe files:

/usr/home/USERNAME/procmail/spam-forward.rc

/usr/home/USERNAME/procmail/spam-deliver.rc

To filter mail for a forward recipe (mail to john@doe.com should be spam filtered and then forwarded to johndoe@someisp.net), I created the following file:

/usr/home/USERNAME/.qmail-doe:com-john

For an address to deliver using a local mailbox (jane@doe.com is configured as a POP account via the ACC), I created the following file:

/usr/home/USERNAME/.qmail-doe:com-jane

You may be able to create these .qmail files using the ACC instead, in which case the file will automatically be created in /var/rules/USERNAME/

To be clear, this setup results in all mail going to the same place, but some of it being processed by spamassassin, making it easier to filter into a junkmail folder in your mail client.

Hope this helps you out.

Live With Passion! ··· content-design-code ©2004 Luke Melia ··· How this site works ···
ornament
contract web development links and more letters and more from my travels photo gallery Luke Melia, Software Developer personal stuff how to contact me go to the main page of this site close default