Customising SpamAssassin with Amavis

Simon Brereton simon.brereton at buongiorno.com
Tue Nov 1 21:25:13 CET 2011


On 1 November 2011 15:11, Benny Pedersen <me at junc.org> wrote:
> On Tue, 1 Nov 2011 09:09:32 -0400, Simon Brereton wrote:
>
>> Thanks Benny - this is eventually what I did.  I'm curious though -
>> because I installed SA and amavis on this system new in September.  It
>> shouldn't have anything 2.43 on it.
>>
>> I'm still not sure where I should be adding the spamcop stuff.
>>
>> /etc/spamassassin/local.cf
>> /usr/share/cpan/build/Mail-SpamAssassin-2.43-USd2C_/rules/local.cf
>
> oh no, never install direct from cpan
>
> build deb files from cpan is okay

Oh.  I didn't know that.  Never done it before...

> you need to remove it completely
>
>> Also, is there a way I can pipe spamassassin --lint -D output to a
>> file or less?  When I do this, it tells me that the spamcop module is
>> already loaded, but doesn't tell me where it's picking its
>> configuration up from.
>
> spamassassin 2>&1 -D --lint | less

Thanks. - that opens up a lot of other issues..  Here are the ones
that concern me most.

Nov  1 19:43:32.556 [12312] dbg: diag: [...] module not installed:
Net::Ident ('require' failed)
Nov  1 19:43:32.556 [12312] dbg: diag: [...] module not installed:
IO::Socket::SSL ('require' failed)
--How can I fix that?


Nov  1 19:43:32.557 [12312] dbg: config: using
"/etc/mail/spamassassin" for site rules pre files
Nov  1 19:43:32.557 [12312] dbg: config: read file
/etc/mail/spamassassin/init.pre
Nov  1 19:43:32.557 [12312] dbg: config: read file
/etc/mail/spamassassin/v310.pre
Nov  1 19:43:32.557 [12312] dbg: config: read file
/etc/mail/spamassassin/v312.pre
Nov  1 19:43:32.557 [12312] dbg: config: read file
/etc/mail/spamassassin/v320.pre
Nov  1 19:43:32.557 [12312] dbg: config: read file
/etc/mail/spamassassin/v330.pre
-- Surely can't that be right?

Nov  1 19:43:32.563 [12312] dbg: plugin: loading
Mail::SpamAssassin::Plugin::SpamCop from @INC
Nov  1 19:43:32.564 [12312] dbg: reporter: local tests only, disabling SpamCop
Nov  1 19:43:32.565 [12312] dbg: plugin: loading
Mail::SpamAssassin::Plugin::SPF from @INC
Nov  1 19:43:32.568 [12312] dbg: plugin: loading
Mail::SpamAssassin::Plugin::Pyzor from @INC
Nov  1 19:43:32.569 [12312] dbg: pyzor: local tests only, disabling Pyzor
Nov  1 19:43:32.570 [12312] dbg: plugin: loading
Mail::SpamAssassin::Plugin::Razor2 from @INC
Nov  1 19:43:32.571 [12312] dbg: razor2: local tests only, skipping Razor
-- I thought I had network tests on..

mail:~# grep -rin sa_local_tests_only /etc/amavis/*
/etc/amavis/conf.d/20-debian_defaults:93:$sa_local_tests_only = 0;
# only tests which do not require internet access?

Surely = 1 would be local only, no?


Nov  1 19:43:32.572 [12312] dbg: plugin: did not register
Mail::SpamAssassin::Plugin::SpamCop, already registered
-- Why is trying to register twice?  Is this because I added it to local.cf?


> before enabling spamcop plugin one need to ask spamcop for an account, how
> to configere it ?, see perldoc Mail::SpamAssassin::Plugin::Spamcop

I have one..


Thanks.

Simon


More information about the amavis-users mailing list