View Single Post
  #1  
Old 6th July 2006, 04: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

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

# Use maildir-style mailbox in user's home directory
DEFAULT=$HOME/.maildir/
SHELL=/bin/sh

:0fw
| /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.

Thanks
Reply With Quote
Sponsored Links