On 2021-04-25 01:47 PM, Henrik K wrote:
> On Sun, Apr 25, 2021 at 01:28:31PM -0400, Steve Dondley wrote:
>>
>> > mass-check -c parameter expects to find every config file in that single
>> > directory. Now it's missing spamassassin updates and specifically
>> > 20_aux_tlds.cf from there. You could copy it to /etc/spamassassin
>> > temporarily, but I'd rather make a completely separate directory that
>> > should
>> > include only the relevant *.pre and *.cf files you need for the scan.
>>
>> OK, thanks. So I created a directory: /root/spam_rules
>>
>> I copied over every .cf and .pre file from /etc/spamassassin into that
>> dir
>> as well as every .cf and .pre file inside
>> /var/lib/spamassassin/3.004004
>
> Don't blindly copy all .cf files from /etc/spamassassin, there's no
> point
> using AWL or bayes etc from that config.
OK. I'm setting up a test machine to duplicate a live machine. Not sure
if that makes a difference or not.
>
>> I ran mass-check with "-c=~/root/spam_rules" and now get a ton of
>> these
>> errors:
>>
>>
>> config: configuration file "/root/spam_rules/20_advance_fee.cf"
>> requires
>> version 3.004004 of SpamAssassin, but this is code version 3.004006.
>> Maybe
>> you need to use the -C switch, or remove the old config files?
>> Skipping this
>> file at
>> /root/spamassassin-3.4/masses/../lib/Mail/SpamAssassin/Conf/Parser.pm
>> line
>> 414.
>
> svn checkout http://svn.apache.org/repos/asf/spamassassin/trunk
> spamassassin-trunk
I have the trunk downloaded via svn, but I have no idea how to find the
revision for 3.4.4 and roll back to it.
I ended up just downloading the 3.4.4 version from metacpan. After
downloading and using this version, the errors have gone away.