Customising SpamAssassin with Amavis

Simon Brereton simon.brereton at buongiorno.com
Mon Oct 31 15:31:56 CET 2011


Hi

Not a very busy mailing list :(

I've been using amavis with clamav and spamassassin for a few years and never really paid much attention to the inner workings.  It's always just done what I needed it to do and I had my hands full understanding the rest of the system.  Lately, however, I was looking at a few optimizations and I started fiddling - and now I could use some help.

In the first instance, I implemented SPF on my domains.  I notice that SA does check for SPF records.  However, I wonder if would be possible to configure SA/Amavis to insert a specific SPF line in the headers when an SPF record is found in the way that Yahoo/Gmail/postfix-policyd/etc. does?

Secondly, I've always had the Mail::SpamAssassin::Plugin::SpamCop plugin installed - I assumed this did just did spamcop RBL lookups - but now I've discovered that it can actually redirect mails to spamcop!  I would like to utilize that ability.  However, I don't find the local.cf that I'm required to edit.  I'm using Debian which I know likes to do things its own way, but some pointers would be appreciated.

Lastly, since installing some extra plugin modules I now have cron complaining:

/etc/cron.daily/amavisd-new:
config: configuration file "/usr/share/spamassassin/20_body_tests.cf" requires version 2.43 of SpamAssassin, but this is code version 3.003001. Maybe you need to use the -C switch, or remove the old config files? Skipping this file at /usr/share/perl5/Mail/SpamAssassin/Conf/Parser.pm line 392.
config: configuration file "/usr/share/spamassassin/20_compensate.cf" requires version 2.43 of SpamAssassin, but this is code version 3.003001. Maybe you need to use the -C switch, or remove the old config files? Skipping this file at /usr/share/perl5/Mail/SpamAssassin/Conf/Parser.pm line 392.
config: configuration file "/usr/share/spamassassin/20_head_tests.cf" requires version 2.43 of SpamAssassin, but this is code version 3.003001. Maybe you need to use the -C switch, or remove the old config files? Skipping this file at /usr/share/perl5/Mail/SpamAssassin/Conf/Parser.pm line 392.
config: configuration file "/usr/share/spamassassin/20_meta_tests.cf" requires version 2.43 of SpamAssassin, but this is code version 3.003001. Maybe you need to use the -C switch, or remove the old config files? Skipping this file at /usr/share/perl5/Mail/SpamAssassin/Conf/Parser.pm line 392.
Unrecognized escape \Q passed through in regex; marked by <-- HERE in m/\Q <-- HERE charset(89)\E/ at /usr/share/perl5/Mail/SpamAssassin/Conf/Parser.pm line 1294.
Unrecognized escape \E passed through in regex; marked by <-- HERE in m/\Qcharset(89)\E <-- HERE / at /usr/share/perl5/Mail/SpamAssassin/Conf/Parser.pm line 1294.
config: configuration file "/usr/share/spamassassin/20_uri_tests.cf" requires version 2.43 of SpamAssassin, but this is code version 3.003001. Maybe you need to use the -C switch, or remove the old config files? Skipping this file at /usr/share/perl5/Mail/SpamAssassin/Conf/Parser.pm line 392.


The error is plain :)  But how to remove the old config files, or where to add the -C  switch is not clear to me.  Again, if someone can point me in the right direction I'd be grateful.

Simon





More information about the amavis-users mailing list