On Tue, Feb 24, 2004 at 09:10:20AM -0700, Jason R. Mastaler wrote: > "Monique Y. Herman" <[EMAIL PROTECTED]> writes: > > I could contribute my method > Great. > > but I actually, um ... ahem ... to be honest, I run spamassassin > > through procmail, then have procmail call tmda, which delivers mail > > to my spam folder if X-Spam-Flag is set to YES. > This seems like a pretty common/normal configuration from what I've > seen.
ok, then mine must be odd.
~/.tmda/filters/incoming:
from <> ok
to [EMAIL PROTECTED] ok
from-file -autodbm ~/.tmda/lists/blacklist drop
from-file -autodbm ~/.tmda/lists/whitelist accept
from-file -autodbm ~/.tmda/lists/confirmed accept
from-file ~/.tmda/lists/work accept
# spamassassin gets to toss out the crap here...
pipe "if spamc -c; then false; else true; fi" deliver=~/Mail/sa/
from-file ~/.tmda/lists/wildcards accept
from-file ~/.tmda/lists/mailinglists accept
from [EMAIL PROTECTED] drop
from [EMAIL PROTECTED] drop
from [EMAIL PROTECTED] drop
# Examine the message content
body "BEGIN PGP MESSAGE" accept
body "BEGIN PGP SIGNED MESSAGE" accept
body "viagra|ginseng|vicodin|penis|base64|breast" drop
this way everything in my whitelist (bar mailing lists) is accepted.
everything else is checked by tmda. oh, and i use procmail for delivery
so the procmailrc that the tmda spawned procmail uses has a bit for
sa-learn:
~/.tmda/procmail-post:
# [some setup stuff goes here...]
# Create a backup cache of 200 most recent messages in case of
# mistakes (yes, you can change the 200 to 20 or 400 or whatever
# you want)
:0 c
backup
{
:0 ic
| cd backup && rm -f dummy `ls -t msg.* | tail +201`
:0 ic
| sa-learn -L --ham
}
# [delivering rules follow from here...]
i watched my (maildir formatted) ~/Mail/sa/ folder for a while but there
were no positives. my only complaint is that i wish that tmda tagged
addresses could be delivered w/o being seen by spam assassin. something
like this in the ~/.tmda/filters/incoming file:
from-file ~/.tmda/lists/work accept
tagged-addess VALID accept
# spamassassin gets to toss out the crap here...
pipe "if spamc -c; then false; else true; fi" deliver=~/Mail/sa/
but for the most part it's all good.
kevin
--
[EMAIL PROTECTED] george will ethics report:
http://ie.suberic.net/~kevin/cgi-bin/blog http://tinyurl.com/2wya7
did george bush serve? http://www.calpundit.com/archives/003220.html
why does the gop cheer terrorists? http://craphound.com/images/sotu2004.avi
pgp00000.pgp
Description: PGP signature
_____________________________________________ tmda-users mailing list ([EMAIL PROTECTED]) http://tmda.net/lists/listinfo/tmda-users
