>>>>> "Sven" == Sven Mueller <[EMAIL PROTECTED]> writes:

>> [28638] dbg: config: using "/root/.spamassassin/user_prefs" for
>> user prefs file

Sven> If you want to use auto-learn (or auto-whitelist for that
Sven> matter), you will have to configure spamassassin in a way that
Sven> it uses some other location. However, since this has to be
Sven> configured in the spamassassin configs, there is nothing I could
Sven> do about this.

I missed this before.  The two kludges are either exporting
HOME=/var/lib/spampd in init.d/spampd or adding
$ENV{'HOME}'='/var/lib/spampd' to the perl script.

To elevate that from kludge to hack, do a gecos lookup to find
spampd's HOME.  Ie, something like:

my ($pwname,$pwpasswd,$pwuid,$pwgid,$pwquota,$pwcomment,$pwgcos,
   $pwdir,$pwshell,$pwexpire) = getpwnam($user);
$ENV{'HOME'} = $pwdir;

after the options are read in should do it.

-JimC


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to