On 4/20/2013 3:20 PM, Benny Pedersen wrote:
> Ben Johnson skrev den 2013-04-20 05:02:
> 
>> Yes, I believe that me and the system always execute SA commands as the
>> "amavis" user. When I was using the SQL setup, I had the following in
>> local.cf:
>>
>> bayes_path /var/lib/amavis/.spamassassin/bayes
> 
> is amavis have homedir in /var/lib/ ?

The amavis user's home directory is /var/lib/amavis. This seems to be
the default on Ubuntu; I didn't change this path.

> in gentoo its default as /var/amavis where the .spamassassin dir is
> created by amavisd
> 
> use user_prefs to set bayes_path does not make sense if sql is used
> 

Thanks; I did comment-out the "bayes_path" directive. I figured that it
wouldn't matter whether it is commented or not, in the presence of
SQL-related directives, but it can't hurt to comment-out this line.

>> With the DBM setup, I had the following (I have since commented it out,
>> while attempting to debug this Bayes issue):
>>
>> bayes_sql_override_username amavis
> 
> +1 to this one since amavis cant use multiple sa users very easy, but
> depending on what amavis it being supported with complicated setups :(

I only need one Bayes user, so this setup is adequate.

> i changed away from amavisd to clamav-milter, spampd in postfix after
> queue, this is working very well for me, and i hope sa 3.4.x will not
> break spampd :=)

Hmm, I will consider your sound advice in this regard. amavis does seem
to be overly memory-hungry (despite setting $max_servers = 1 and
$max_requests = 1). If there is a better alternative, I'm all ears (or
eyes, as the case may be).

>> Is something more required to ensure that my mail system, which runs
>> under the "amavis" user, is always reading from and writing to the
>> same DB?
> 
> nope just remember that amavis also reads .spamassassin/user_prefs
> 
> if you like you can copy that user_prefs to /root/.spamassassin so you
> dont have to remember something :)
> 
> user_prefs should ONLY be readble by that user that runs it
> 

Thanks for pointing this out. I will double-check the permissions.

I'll respond to your other email momentarily.

Thanks, Benny!

-Ben

Reply via email to