hope that I am not the first to encounter difficulty with
spam-assassin's sa-learn. 

It seems while spamc and spamd have options for sql stored bayes_dbs or
virtual user  directories, sa-learn has a completly different syntax for
specifying configuration and user_prefs locations. Having seen posts
before on this list regarding 'sa-learn and SQL-configs' collect zero
responses, I decided to have a bash getting sa-learn to use virtual
config directories in the manner of spamd. 

After browsing the source for a minute, making this hack to CmdLearn.pm
allowed me to use the option username and virtual-config-dir , combining
them to pass user_dir to Mail::Spamassassin::new. With SA 2.53,
Mail::SpamAssassin::CmdLearn 

  56,59d55
  <              'virtual-config-dir|v=s'           =>
\$opt{'virtual-config-dir'},
  <              'username|u=s'                     =>
\$opt{'username'},
  < 
  < 
  91d86
  <     user_dir          => join ( '/' , $opt{'virtual-config-dir'} ,
$opt{'username'} ),

Which feels like a revolting hack to me.

Has anyone else come across this while using spam assassin, no users
have system accounts on the server I am configuring. More to the point,
has anybody made this work already? 

Andrew


-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to