Networking Forums

Networking Forums > Computer Networking > Linux Networking > bogofilter training and fetchmail multiple collects

Reply
Thread Tools Display Modes

bogofilter training and fetchmail multiple collects

 
 
Greg
Guest
Posts: n/a

 
      09-21-2003, 04:20 PM
OK, so I've got fetchmail set up now and it seems to pull messages from my
ISP's POP server into a file (called username), in /var/spool/mail.
Though it does insist on downloading all the same e-mails every time it
polls??

fetchmailrc
---------------
# Put here each user config

set postmaster "greg"
set bouncemail
set no spambounce
#set properties ""
set daemon 120
#set syslog


poll pop.dsl.pipex.com
tracepolls
proto pop3
user "mfsj30%dsl.pipex.com"
pass "oofoouch"
is greg here
and wants mda /usr/bin/procmail
keep
---------------

Now I'm trying to get procmail to run spamassassin and bogofilter.
procmailrc:
---------------
VERBOSE=on
SHELL=/bin/sh
LINEBUF=4096
PATH=$HOME/bin:/bin:/usr/bin:/usr/local/bin

MAILDIR=$HOME/Mail
DEFAULT=$MAILDIR/inbox
LOGFILE=$HOME/procmail.log
##ADMINFOLDER=$MAILDIR/admin
##BULKFOLDER=$MAILDIR/bulk
#FORMAIL=/usr/bin/formail #no idea what formail is?
##LOCKEXT=.lock
##SENDMAIL=/usr/sbin/sendmail

INCLUDERC=$HOME/recipe.rc
---------------
recipe.rc
---------------
## First run stuff through bogofilter
:0fw
| bogofilter -u -e -p -l

## If bogofilter fails, throw the mail back into the pipe ## e=only
execute if preceeding recipe executed and failed
:0e
{ EXITCODE=75 HOST }

## if its spam, put it in the caught folder
:0:
* ^X-Bogosity: Yes
spam

## If it passed, try it through spamassassin.
:0 fw
* < 256000 #What's this for?
| /usr/bin/spamc #spamassassin

##If spam, pass to Bogofilter and spamcan
:0
* ^X-Spam-Status: Yes
{
:0cw
| /usr/bin/bogofilter -S

:0
spam
}
###
## Accept all the rest to default mailbox
:0:
| inbox

---------------

Training bogofilter, using:
[root@atlantic Mail]# bogofilter -s < spam/cur
returns:
stdin: Is a directory
I've tried running bogofilter -s as the user but it cannot find the
bogofilter when I do that.

The spam mail should go to ~/Mail/spam/cur

Cheers,

Greg

 
Reply With Quote
 
 
 
 
Greg
Guest
Posts: n/a

 
      09-21-2003, 07:07 PM

Woops,

Looks like I've just given away my e-mail and password - It was only a
test alias but I'd better just change it, to be on the safe side.

Duh!!!

Greg (dummy in chief)
 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ADSLMax: Training period Maurice Batey Broadband 15 08-04-2007 04:43 PM
10 day training period - reconnect once a day? Ant Broadband 5 07-14-2007 03:15 PM
Is Max 10 day training affected? Andy Jones Broadband 1 08-25-2006 07:42 PM
bogofilter Tim Hammerquist Linux Networking 9 10-10-2003 05:44 PM
Lengthy modem training? Gareth Davies Broadband 2 07-31-2003 10:59 PM



1 2 3 4 5 6 7 8 9 10 11