View Single Post
Old 6th July 2006, 05:58
thelorax thelorax is offline
Junior Member
Join Date: Jul 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Thumbs down fetchmail + procmail + spamassassin setup help

First off, I know that bits and pieces of this have been covered elsewhere, but I'm apparently not smart enough to figure it all out, so please be patient.

Here's what I would like to do: I have a catchall account that gets LOTS of spam (hundreds a day) but there are occasionally some important messages that I would like to get (and Thunderbird's filter just isn't cutting it). What I would like to do is retreive the messages from this account via fetchmail, and have procmail run them through spamassassin (or bogofilter, clamscan, whatever) and then place the messages in a local mailbox with good stuff in inbox and spam in a spam folder (or even just mark it as spam in the header so I can filter in the mail client).

I have tried setting up .fetchmailrc and .procmailrc files but seem to be failing miserably

#set filter = /usr/bin/procmail -m $HOME/.procmailrc
set daemon 180
poll with proto POP3
    user [username] there with password [password] is [me] here
MAILDIR=$HOME/.maildir      #you'd better make sure it exists
LOGFILE=$MAILDIR/from   #recommended

# Use maildir-style mailbox in user's home directory

| /usr/bin/spamassassin

Any detailed advice in how to set this up would be greatly appreciated. I'm running Ubuntu 6.06 if it matters.

Reply With Quote
Sponsored Links