[Mimedefang]
Jeff Grossman
jeff at stikman.com
Wed Jun 30 17:01:01 EDT 2004
on 6/30/04 12:36 PM, Jeff Rife at mimedefang at nabs.net wrote:
> First, in the default MD/SA installs, sa-mimedefang.cf is read twice (at
> least on my system): once because it is in the default rules path for SA
> and is named *.cf, and once because MD tells SA to use it as the user-
> prefs file. I don't know if this causes problems. It shouldn't, but one
> never knows.
>
> Second, SA stores auto-whitelist and bayes* files in the directory
> specified by the "userstate_dir" option to the SpamAssassin constructor.
> The default is ~/.spamassassin. Since MD does not pass this option in
> the constructor, that's where the files are stored. Settings in sa-
> mimedefang.cf seem to make no difference. Depending on what user you run
> MD as, you can figure out which directory things end up in (usually
> ~defang/.spamassassin).
>
> To get auto-whitelisting working correctly, I had to do the following
> (note that /var/spool/SA-MIMEDefang is where I put *my* AWL and bayes*
> files...you can put them wherever you want):
>
> 1. Change the call to the SpamAssassin constructor in the
> spam_assassin_init function in mimedefang.pl:
>
> $SASpamTester = Mail::SpamAssassin->new({
> local_tests_only => $SALocalTestsOnly,
> dont_copy_prefs => 1,
> userprefs_filename => $config,
> userstate_dir => '/var/spool/SA-MIMEDefang'});
>
> 2. Set the following in the sa-mimedefang.cf file:
>
> auto_learn 1
> bayes_auto_expire 1
> bayes_learn_to_journal 1
> bayes_file_mode 0775
> bayes_path /var/spool/SA-MIMEDefang/bayes
> auto_whitelist_file_mode 0775
> auto_whitelist_path /var/spool/SA-MIMEDefang/auto-whitelist
>
> Yes, I know that those file paths don't seem to do anything without
> the change to mimedefang.pl, but I have them there, just in case.
>
I don't personally use AWL, but I am not sure why you have problems with the
bayes path statement. Here is the relevant portion of my sa-mimedefang.cf
file in /etc/mail/spamassassin:
#Bayes information
use_bayes 1
bayes_path /etc/mail/spamassassin/bayes/bayes
bayes_file_mode 0700
bayes_use_hapaxes 1
auto_learn_threshold_nonspam 0.0
auto_learn_threshold_spam 8.0
And, my bayes database goes in the directory specified in that file. I have
never made any changes to mimedefang.pl.
Jeff
--
Jeff Grossman (jeff at stikman.com)
More information about the MIMEDefang
mailing list