> > I have LearnAsSpam IMAP folders for everyone to drag spam that get's
> > through into. How can I run sa-learn so that it builds a /single/
> > database from all of these folders and so that spamd uses that single
> > database for scoring everyone's mail?
> 
> Huh, using spamd --nouser-config ?

Sorry, I read "spamd", not sa-learn...

I use the trick or running sa-learn via su, specifying the user owning the
db. Something like:

        su -s /bin/sh -c '/usr/bin/sa-learn ...' - TheDbOwningUser

However, the su option may be unavailable to your IMAP server. If this is
the case, instead try specifying the full path to the db via the --dbpath
switch, provided db permission are correctly set.

Giampaolo

Reply via email to