You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Steve Dondley <s...@dondley.com> on 2021/04/25 16:17:51 UTC

Getting "config: registryboundaries: no tlds defined, need to run sa-update" message when running mass-check

I'm running this command:

./mass-check -n --rules='^LOCAL_AWK_INTRO' -o 
ham:dir:/spam/Maildir/.INBOX*  -c=/etc/spamassassin/ | grep '.  1'


Everything appears to work as expected but I'm getting this 
warning/error when I do:

"config: registryboundaries: no tlds defined, need to run sa-update"

Running sa-update doesn't fix the problem and a search didn't uncover 
anything useful.

Re: Getting "config: registryboundaries: no tlds defined, need to run sa-update" message when running mass-check

Posted by Henrik K <he...@hege.li>.
On Sun, Apr 25, 2021 at 07:38:44PM +0300, Henrik K wrote:
> On Sun, Apr 25, 2021 at 12:17:51PM -0400, Steve Dondley wrote:
> > I'm running this command:
> > 
> > ./mass-check -n --rules='^LOCAL_AWK_INTRO' -o ham:dir:/spam/Maildir/.INBOX*
> > -c=/etc/spamassassin/ | grep '.  1'
> > 
> > 
> > Everything appears to work as expected but I'm getting this warning/error
> > when I do:
> > 
> > "config: registryboundaries: no tlds defined, need to run sa-update"
> > 
> > Running sa-update doesn't fix the problem and a search didn't uncover
> > anything useful.
> 
> 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.

Oh yeah and actually you should never use -c=/etc/spamassassin, as the
mass-check can then potentially then trash your AWL/bayes etc since it's
using your main config.. 

Sorry, it's more of a developer tool and I know the wiki guides are terribly
outdated.  :-)


Re: Getting "config: registryboundaries: no tlds defined, need to run sa-update" message when running mass-check

Posted by Axb <ax...@gmail.com>.
On 4/25/21 7:34 PM, Steve Dondley wrote:
> 
> 
>> On Apr 25, 2021, at 1:31 PM, Axb <ax...@gmail.com> wrote:
>>
>> What are you trying to do?
>> run masscheck for your rules or for the SA project?
> 
> I’m experimenting with writing my own rules. My machines are using SA 3.4.4 so I want to use the 3.4.4 rules.
> 

this may give you some pointers

https://svn.apache.org/repos/asf/spamassassin/trunk/masses/contrib/automasscheck-minimal/


Re: Getting "config: registryboundaries: no tlds defined, need to run sa-update" message when running mass-check

Posted by RW <rw...@googlemail.com>.
On Sun, 25 Apr 2021 13:34:16 -0400
Steve Dondley wrote:


> I’m experimenting with writing my own rules. My machines are using SA
> 3.4.4 so I want to use the 3.4.4 rules.

There is only one set of rules, "if" statements handle any differences.

Re: Getting "config: registryboundaries: no tlds defined, need to run sa-update" message when running mass-check

Posted by Steve Dondley <s...@dondley.com>.

> On Apr 25, 2021, at 1:31 PM, Axb <ax...@gmail.com> wrote:
> 
> What are you trying to do?
> run masscheck for your rules or for the SA project?

I’m experimenting with writing my own rules. My machines are using SA 3.4.4 so I want to use the 3.4.4 rules.

Re: Getting "config: registryboundaries: no tlds defined, need to run sa-update" message when running mass-check

Posted by Axb <ax...@gmail.com>.
What are you trying to do?
run masscheck for your rules or for the SA project?

On 4/25/21 7:28 PM, 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
> 
> 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.
> config: configuration file "/root/spam_rules/20_body_tests.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.
> config: configuration file "/root/spam_rules/20_compensate.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.
> config: configuration file "/root/spam_rules/20_dnsbl_tests.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.
> <snip>
> 
> spamassassin -V reports: "SpamAssassin version 3.4.4"
> 
> I imagine I have to checkout an older 3.4.4 point version from SVN and 
> use the mass-check command from that. It's been ages since I've used SVN.
> 
> How can I get to the older version via SVN?



Re: Getting "config: registryboundaries: no tlds defined, need to run sa-update" message when running mass-check

Posted by Steve Dondley <s...@dondley.com>.
> 
> spamassassin -V reports: "SpamAssassin version 3.4.4"
> 
> I imagine I have to checkout an older 3.4.4 point version from SVN and
> use the mass-check command from that. It's been ages since I've used
> SVN.
> 
> How can I get to the older version via SVN?

I solved this by downloading version 3.4.4 of SA from metacpan and then 
dropping the masses/ dir with the mass-check tool from SVN into the 
3.4.4 version.

Re: Getting "config: registryboundaries: no tlds defined, need to run sa-update" message when running mass-check

Posted by Steve Dondley <s...@dondley.com>.
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.

Re: Getting "config: registryboundaries: no tlds defined, need to run sa-update" message when running mass-check

Posted by Henrik K <he...@hege.li>.
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.

> 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

Use the rules-directory found in spamassassin-trunk/rules, instead of
sa-update directory.


Re: Getting "config: registryboundaries: no tlds defined, need to run sa-update" message when running mass-check

Posted by Steve Dondley <s...@dondley.com>.
> 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

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.
config: configuration file "/root/spam_rules/20_body_tests.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.
config: configuration file "/root/spam_rules/20_compensate.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.
config: configuration file "/root/spam_rules/20_dnsbl_tests.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.
<snip>

spamassassin -V reports: "SpamAssassin version 3.4.4"

I imagine I have to checkout an older 3.4.4 point version from SVN and 
use the mass-check command from that. It's been ages since I've used 
SVN.

How can I get to the older version via SVN?

Re: Getting "config: registryboundaries: no tlds defined, need to run sa-update" message when running mass-check

Posted by Henrik K <he...@hege.li>.
On Sun, Apr 25, 2021 at 12:17:51PM -0400, Steve Dondley wrote:
> I'm running this command:
> 
> ./mass-check -n --rules='^LOCAL_AWK_INTRO' -o ham:dir:/spam/Maildir/.INBOX*
> -c=/etc/spamassassin/ | grep '.  1'
> 
> 
> Everything appears to work as expected but I'm getting this warning/error
> when I do:
> 
> "config: registryboundaries: no tlds defined, need to run sa-update"
> 
> Running sa-update doesn't fix the problem and a search didn't uncover
> anything useful.

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.