Spamassassin configuration files not working

Gary V mr88talent at gmail.com
Sat Apr 30 02:07:29 CEST 2011


On 4/29/11, Gary V <mr88talent at gmail.com> wrote:
> On 4/29/11, Jimmi <jimmi at libero.it> wrote:
>>  On Fri, 29 Apr 2011 08:26:06 -0400, Michael Scheidell wrote:
>>>  #1, amavisd-new doesn't use spamd.  you don't start spamd, you start
>>> amavis.
>>
>>  I started spamd in order to verify the consistency of my
>>  /etc/spamassassin/*.cf files, and everything works like a charm. By
>>  passing emails through spamc the rules works correctly.
>>
>>>  #2, look for (more config info) in ../etc/amavisd.conf
>>
>>  I looked into ../etc/amavis/conf.d/ for days but I could not find
>>  anything that may help me. I will check it again, anyhow :)
>>
>>>  #3, you say 'not using system conf files'.. why do you say that?
>>
>>  Two reasons:
>>  - Mails obtain different scores while filtering through amavis or
>>  through spamc/spamd
>>  - If I well understood by running amavis in debug mode I should find
>>  something like:
>>  ...
>>  debug: config: read file /etc/mail/spamassassin/init.pre
>>  debug: config: read file /etc/mail/spamassassin/local.cf
>>  ...
>>
>>  and so on, but nothing like that is in my log.
>>
>>>  #4, look for postfix integration docs on amavis web site also.
>>
>>  I cannot find instructions that tell amavis how to configure SA.
>>
>>  Thanks anyhow for the help, I will try harder ;)
>> --
>>  jimmi
>>
>
> Looks like you are using Debian. You have to enable span scanning and
> virus scanning because by default they are disabled. See the
> directions in:
> /etc/amavis/conf.d/15-content_filter_mode
>
>
> # You can modify this file to re-enable SPAM checking through spamassassin
> # and to re-enable antivirus checking.
>
> #
> # Default antivirus checking mode
> # Uncomment the two lines below to enable it back
> #
>
> #@bypass_virus_checks_maps = (
> #   \%bypass_virus_checks, \@bypass_virus_checks_acl,
> \$bypass_virus_checks_re);
>
>
> #
> # Default SPAM checking mode
> # Uncomment the two lines below to enable it back
> #
>
> #@bypass_spam_checks_maps = (
> #   \%bypass_spam_checks, \@bypass_spam_checks_acl,
> \$bypass_spam_checks_re);
>
>

Additionally, if you have clamav-daemon installed, and you actually
want it to work with amavis, add the clamav user to the amavis group,
then restart clamd:

gpasswd -a clamav amavis
/etc/init.d/clamav-daemon restart



-- 
Gary V


More information about the amavis-users mailing list