On 27.6.2010 19:55, Giampaolo Tomassoni wrote: >>> 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. >
sa-learn -u username should do the trick, of am I wrong? I use it that way. -- http://www.iki.fi/jarif/ I use PGP. If there is an incompatibility problem with your mail client, please contact me. You will overcome the attacks of jealous associates.
signature.asc
Description: OpenPGP digital signature