You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Irina <ir...@nas.net> on 2007/06/29 18:05:25 UTC

Rules in 2 locations

Can someone clarify?

Spamassassin is in
/etc/mail/spamassassin
/usr/local/share/spamassassin

I then run sa-update
    sa-update --nogpg --allowplugins --channel
saupdates.openprotect.com --channel updates.spamassassin.org

I now see the same set of file in the following 2 directories:
    /usr/local/share/spamassassin/
    /var/lib/spamassassin/3.002001/updates_spamassassin_org/

Is it normal?

Thank you
Irina


Re: Rules in 2 locations

Posted by Luis Hernán Otegui <lu...@gmail.com>.
OK, here we go me and my big mouth... No, really, thanks for the
explanations, Bowie and Theo...


Luix

2007/6/29, Theo Van Dinter <fe...@apache.org>:
> On Fri, Jun 29, 2007 at 01:14:03PM -0300, Luis Hernán Otegui wrote:
> > This is normal. Stock distribution rules are installed in
> > /usr/local/share/spamassassin when you install SA. But as new rules
> > are updated via SARE, they get downloaded to
> > /var/lib/spamassassin/3.002001/updates_spamassassin_org/. Notice the
> > version dependent subdir. After sa-update, SA will use the new rules
> > sitting on /var/lib/...
>
> Just for clarification, SARE has nothing to do with the
> updates.spamassassin.org channel.  updates.spamassassin.org are rules/etc
> from the official project.  Third parties make SARE rules available
> through their own channels, the SARE group doesn't publish their own
> channel.
>
> Also, "man spamassassin" has a whole section on directories used for configs.
>
> --
> Randomly Selected Tagline:
> "BABYLON 5!  A five-mile long cement mixer of truth, pouring out the
>   Concrete of Nice-Nice in a long, grey ribbon into the future, to form a
>                  ***SIDE WALK OF JUSTICE!!***" - The Tick on Babylon 5
>
>


-- 
-------------------------------------------------
GNU-GPL: "May The Source Be With You...
Linux Registered User #448382.
When I grow up, I wanna be like Theo...
-------------------------------------------------

Re: Rules in 2 locations

Posted by Theo Van Dinter <fe...@apache.org>.
On Fri, Jun 29, 2007 at 01:14:03PM -0300, Luis Hernán Otegui wrote:
> This is normal. Stock distribution rules are installed in
> /usr/local/share/spamassassin when you install SA. But as new rules
> are updated via SARE, they get downloaded to
> /var/lib/spamassassin/3.002001/updates_spamassassin_org/. Notice the
> version dependent subdir. After sa-update, SA will use the new rules
> sitting on /var/lib/...

Just for clarification, SARE has nothing to do with the
updates.spamassassin.org channel.  updates.spamassassin.org are rules/etc
from the official project.  Third parties make SARE rules available
through their own channels, the SARE group doesn't publish their own
channel.

Also, "man spamassassin" has a whole section on directories used for configs.

-- 
Randomly Selected Tagline:
"BABYLON 5!  A five-mile long cement mixer of truth, pouring out the
  Concrete of Nice-Nice in a long, grey ribbon into the future, to form a
                 ***SIDE WALK OF JUSTICE!!***" - The Tick on Babylon 5

Re: Rules in 2 locations

Posted by Luis Hernán Otegui <lu...@gmail.com>.
Don't bother. SA is smart enough to notice these issues, and use only
one set of rules. By default, it will use the newer ones and, if some
aren't updated, it'll take them from the satndard dir (i.e.
/usr/local/share/spamassassin).


Luix

2007/6/29, Irina <ir...@nas.net>:
> Oh, ok.  Thank you.  But...
>
> Why I asked?...  When running spamassassin --lint -D, it shows many
> duplicates.  Such as the following, for example:
>
>     [9460] dbg: rules: __MO_OL_91287 merged duplicates: __MO_OL_B30D1
> __MO_OL_CF0C0
>     [9460] dbg: rules: __MO_OL_015D5 merged duplicates: __MO_OL_6554A
>
> That is why I thought SA uses both directories and includes 2 sets of rules.
>
> Since it uses only 1 directory, it puzzles me where these duplicates are
> coming from.  Does anybody know?
>
> Thank you
> Irina
> ===========================
>
>
>
>
> ----- Original Message -----
> From: "Luis Hernán Otegui" <lu...@gmail.com>
> To: "Irina" <ir...@nas.net>
> Cc: <us...@spamassassin.apache.org>
> Sent: Friday, June 29, 2007 12:14 PM
> Subject: Re: Rules in 2 locations
>
>
> > Irina:
> > This is normal. Stock distribution rules are installed in
> > /usr/local/share/spamassassin when you install SA. But as new rules
> > are updated via SARE, they get downloaded to
> > /var/lib/spamassassin/3.002001/updates_spamassassin_org/. Notice the
> > version dependent subdir. After sa-update, SA will use the new rules
> > sitting on /var/lib/...
> >
> >
> > Luix
> >
> > 2007/6/29, Irina <ir...@nas.net>:
> > > Can someone clarify?
> > >
> > > Spamassassin is in
> > > /etc/mail/spamassassin
> > > /usr/local/share/spamassassin
> > >
> > > I then run sa-update
> > >     sa-update --nogpg --allowplugins --channel
> > > saupdates.openprotect.com --channel updates.spamassassin.org
> > >
> > > I now see the same set of file in the following 2 directories:
> > >     /usr/local/share/spamassassin/
> > >     /var/lib/spamassassin/3.002001/updates_spamassassin_org/
> > >
> > > Is it normal?
> > >
> > > Thank you
> > > Irina
> > >
> > >
> >
> >
> > --
> > -------------------------------------------------
> > GNU-GPL: "May The Source Be With You...
> > Linux Registered User #448382.
> > When I grow up, I wanna be like Theo...
> > -------------------------------------------------
> >
>
>


-- 
-------------------------------------------------
GNU-GPL: "May The Source Be With You...
Linux Registered User #448382.
When I grow up, I wanna be like Theo...
-------------------------------------------------

Re: Rules in 2 locations

Posted by Irina <ir...@nas.net>.
Oh, ok.  Thank you.  But...

Why I asked?...  When running spamassassin --lint -D, it shows many
duplicates.  Such as the following, for example:

    [9460] dbg: rules: __MO_OL_91287 merged duplicates: __MO_OL_B30D1
__MO_OL_CF0C0
    [9460] dbg: rules: __MO_OL_015D5 merged duplicates: __MO_OL_6554A

That is why I thought SA uses both directories and includes 2 sets of rules.

Since it uses only 1 directory, it puzzles me where these duplicates are
coming from.  Does anybody know?

Thank you
Irina
===========================




----- Original Message ----- 
From: "Luis Hernán Otegui" <lu...@gmail.com>
To: "Irina" <ir...@nas.net>
Cc: <us...@spamassassin.apache.org>
Sent: Friday, June 29, 2007 12:14 PM
Subject: Re: Rules in 2 locations


> Irina:
> This is normal. Stock distribution rules are installed in
> /usr/local/share/spamassassin when you install SA. But as new rules
> are updated via SARE, they get downloaded to
> /var/lib/spamassassin/3.002001/updates_spamassassin_org/. Notice the
> version dependent subdir. After sa-update, SA will use the new rules
> sitting on /var/lib/...
>
>
> Luix
>
> 2007/6/29, Irina <ir...@nas.net>:
> > Can someone clarify?
> >
> > Spamassassin is in
> > /etc/mail/spamassassin
> > /usr/local/share/spamassassin
> >
> > I then run sa-update
> >     sa-update --nogpg --allowplugins --channel
> > saupdates.openprotect.com --channel updates.spamassassin.org
> >
> > I now see the same set of file in the following 2 directories:
> >     /usr/local/share/spamassassin/
> >     /var/lib/spamassassin/3.002001/updates_spamassassin_org/
> >
> > Is it normal?
> >
> > Thank you
> > Irina
> >
> >
>
>
> -- 
> -------------------------------------------------
> GNU-GPL: "May The Source Be With You...
> Linux Registered User #448382.
> When I grow up, I wanna be like Theo...
> -------------------------------------------------
>


Re: Rules in 2 locations

Posted by Luis Hernán Otegui <lu...@gmail.com>.
Irina:
This is normal. Stock distribution rules are installed in
/usr/local/share/spamassassin when you install SA. But as new rules
are updated via SARE, they get downloaded to
/var/lib/spamassassin/3.002001/updates_spamassassin_org/. Notice the
version dependent subdir. After sa-update, SA will use the new rules
sitting on /var/lib/...


Luix

2007/6/29, Irina <ir...@nas.net>:
> Can someone clarify?
>
> Spamassassin is in
> /etc/mail/spamassassin
> /usr/local/share/spamassassin
>
> I then run sa-update
>     sa-update --nogpg --allowplugins --channel
> saupdates.openprotect.com --channel updates.spamassassin.org
>
> I now see the same set of file in the following 2 directories:
>     /usr/local/share/spamassassin/
>     /var/lib/spamassassin/3.002001/updates_spamassassin_org/
>
> Is it normal?
>
> Thank you
> Irina
>
>


-- 
-------------------------------------------------
GNU-GPL: "May The Source Be With You...
Linux Registered User #448382.
When I grow up, I wanna be like Theo...
-------------------------------------------------