Thanks Jake - your method works great. It was what I was trying to do, but wasn't sure how to get it to work with the /new /cur Maildir layout. So I did the whole "for" loop idea and sent it message by message to sa-learn then deleted them. So slow...
 
Anyways, the only thing I changed on your script is added "--no-sync" to the sa-learn --spam lines. The way it's setup on your page, it resyncs as it learns, then you resync (again) at the end, so I think that's double the work? no-sync allows it to skip the syncing 'til the end.
 
/usr/bin/sa-learn --spam --no-sync /home/vpop .... ld.com/spam/Maildir/new/*
 
Hope this tweaks performance a bit!
 
Also, I toyed with the idea of having the catch-all on our domain to send all that mail to a user named "Spam"'s email inbox, which then gets sent to sa-learn. This way, spammers who are guessing usernames are actually doing us a favor! I haven't implemented this yet - I wanted to get other people's ideas/comments on this first. Anything ?
 
 
Jared

 

From: Jake Vickers [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 25, 2006 6:11 PM
To: [email protected]
Subject: Re: [qmailtoaster] Training spamassassin with Maildir/Qmail

Jared Markell wrote:
Ok, I've been looking into using an imap folder on a separate account on my box that we can throw messages in that should be marked as spam and run a cron sh job that runs through all the mail in that folder and does the learn-sa feature on them. But the more I read on how to do this, the more confusing it got in terms of having our mail in the Maildir format.
 
The options on spamassassin's site say we need to install archivemail and have it convert the maildir mail to mbox format then feed those files to spamassassin.. I really was hoping to not have to have it do so much work - has anyone found a better way around this?
 
 
Jared
 
It works fine as is. I have an old write-up on how to do it all on my site (http://v2gnu.com/qmail), and I do what you're doing as well. I also have it delete the messages in the Spam folder after sa-learn has been through them. Works just fine. No need to do all that extra work. The spamassassin-toaster package (which is what you're running) was set up to work with the rest of the package as flawlessly as possible.

Reply via email to