You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by George Patterson <ge...@gmail.com> on 2017/08/18 01:56:21 UTC

SVN rules to sa-update?

We have noted that there was an update into SVN for 20_meta_tests.cf that
we'd like to amend on our mail servers
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7411

namely changing:

header __MOZILLA_MUA     X-Mailer =~ /\bMozilla\b/to
header __MOZILLA_MUA    User-Agent =~ /^mozilla\b/i

Just wondering what the process is for moving the rules from SVN into
sa-updates?

As a possible workaround, can the entire meta rule be copied into local.cf?
Will this override the one in 20_meta_test.cf?

Thanks for your time


George

Re: SVN rules to sa-update?

Posted by John Hardin <jh...@impsec.org>.
On Fri, 18 Aug 2017, Kris Deugau wrote:

> For the former it's a bit unfortunate that the official stock rules channel 
> starts with "u", since the rules channels are loaded in alphabetical order,

I use "zzz-local.cf" here.


-- 
  John Hardin KA7OHZ                    http://www.impsec.org/~jhardin/
  jhardin@impsec.org    FALaholic #11174     pgpk -a jhardin@impsec.org
  key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C  AF76 D822 E6E6 B873 2E79
-----------------------------------------------------------------------
   Watch... Wallet... Gun... Knee...                    -- Denny Crane
-----------------------------------------------------------------------
  6 days until the 1938th anniversary of the destruction of Pompeii

Re: SVN rules to sa-update?

Posted by Kris Deugau <kd...@vianet.ca>.
Kevin A. McGrail wrote:
> On 8/17/2017 9:56 PM, George Patterson wrote:
>> As a possible workaround, can the entire meta rule be copied into
>> local.cf <http://local.cf>? Will this override the one in
>> 20_meta_test.cf <http://20_meta_test.cf>?
> I don't remember if it will override it.

Stock rules can be "overwritten" by later rule sets - either formal 
rules channels, or from files in the local configuration directory (any 
.cf file in the same place as local.cf).

For the former it's a bit unfortunate that the official stock rules 
channel starts with "u", since the rules channels are loaded in 
alphabetical order, but I expect not many people have set up their own 
full-on rules channel for distributing their local rule sets.  I did so 
a number of years back when I was distributing local rules across four 
filter platforms with different SA calling setups.

-kgd

Re: SVN rules to sa-update?

Posted by John Hardin <jh...@impsec.org>.
On Fri, 18 Aug 2017, Kevin A. McGrail wrote:

> So no good news at all and if you have followed recent news, this is a 
> downturn with the zones2 box dying on life support.

Bummer.

>>  As a possible workaround, can the entire meta rule be copied into local.cf
>>  <http://local.cf>? Will this override the one in 20_meta_test.cf
>>  <http://20_meta_test.cf>?
>
> I don't remember if it will override it.

I think it will, the most recently-read definition should win.

> Just rename it in your local.cf and score the original at 0 to disable 
> it.

That would break any dependent rules.


-- 
  John Hardin KA7OHZ                    http://www.impsec.org/~jhardin/
  jhardin@impsec.org    FALaholic #11174     pgpk -a jhardin@impsec.org
  key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C  AF76 D822 E6E6 B873 2E79
-----------------------------------------------------------------------
   Watch... Wallet... Gun... Knee...                    -- Denny Crane
-----------------------------------------------------------------------
  6 days until the 1938th anniversary of the destruction of Pompeii

Re: SVN rules to sa-update?

Posted by "Kevin A. McGrail" <ke...@mcgrail.com>.
Hi George

On 8/17/2017 9:56 PM, George Patterson wrote:
> Just wondering what the process is for moving the rules from SVN into 
> sa-updates?
The masscheck/ruleqa is the process for that and it's currently on hold 
because the system is producing wrong 72_scores.cf.

Despite a lot of hours by my firm, myself and Dave Jones on the SA 
SysAdmins team plus ASF Infra trying to get the old boxes working 
(ticket updated this morning that the whole box is dead :-( ), the issue 
remains.  It is very sinister.

So no good news at all and if you have followed recent news, this is a 
downturn with the zones2 box dying on life support.

> As a possible workaround, can the entire meta rule be copied into 
> local.cf <http://local.cf>? Will this override the one in 
> 20_meta_test.cf <http://20_meta_test.cf>?
I don't remember if it will override it.  Just rename it in your 
local.cf and score the original at 0 to disable it.
Regards,
KAM