On Dienstag, 13. September 2005 17:38 Pedro Sam wrote: > I haven't been using spamassassin for a while, but last I check, > "spamassassin -r" will report spam to DCC/pyzor/razor all in one go.
Ah, so it's simple. I already have a script which takes from my SPAM_yes folder and reports as SPAM, and from my SPAM_no folder to report a false positive (aka HAM). > Unfortunately, on its own, it doesn't address the user interface issue > from the perspective of a client remotely accessing mail over > IMAP/SMTP... Here is how I do it: # If you want to deliver the e-mail after learning back to cyrus: fetchmail -a -s -n -p IMAP -u $user --folder 'SPAM_no' --auth 'password' -m 'bash -c "/usr/bin/tee >(/usr/bin/sa-learn --ham --single &>/dev/null)|/usr/bin/spamc|/usr/lib/cyrus-imapd/deliver"' imap.host.domain # This is the way I do it on normal imapd servers. That e-mail is learnt and then discarded: sudo -H -u $user fetchmail -a -s -n -p IMAP --folder 'SPAM_yes' --auth 'password' -m "bash -c \"tee >$checkfile|sa-learn --spam --single &>/dev/null ; cat $headfile $checkfile >>$spamoutput.$user\"" imap.host.domain Around this there's a loop with each user for who filtering is done. I guess I should replace the "sa-learn" with "spamassassin -r" to report to bayes/dcc/pyzor/razor, or does only sa-learn tell to bayes? Then I should do both. mfg zmi -- // Michael Monnerie, Ing.BSc --- it-management Michael Monnerie // http://zmi.at Tel: 0660/4156531 Linux 2.6.11 // PGP Key: "lynx -source http://zmi.at/zmi2.asc | gpg --import" // Fingerprint: EB93 ED8A 1DCD BB6C F952 F7F4 3911 B933 7054 5879 // Keyserver: www.keyserver.net Key-ID: 0x70545879
pgp4DsDImmdm3.pgp
Description: PGP signature