You are viewing a plain text version of this content. The canonical link for it is here.
Posted to sysadmins@spamassassin.apache.org by Dan Malm <da...@one.com.INVALID> on 2020/10/23 09:18:25 UTC

New mirror, how to tell sa-update to use it?

Hi,

I've set up an SA Update mirror at https://mirror.one.com/spamassassin/
if it is of any interest (I know it doesn't match the sa-update.<domain>
convention, would that be a blocker?)

For our own machines we'd like to set sa-update to use this mirror with
highest priority but I'm failing to find a way to point sa-update to use
any custom list of mirrors short of editing MIRRORED.BY, but since
sa-update updates that file on a regular basis... Any pointers on how I
would accomplish this?

-- 
BR/Mvh. Dan Malm, Systems Engineer, One.com

Re: New mirror, how to tell sa-update to use it?

Posted by Dan Malm <da...@one.com.INVALID>.

On 2020-10-26 18:57, Giovanni Bechis wrote:
> On 10/26/20 2:19 PM, Dan Malm wrote:
>> On 2020-10-24 21:47, Kevin A. McGrail wrote:
>>> Are you trying to publish your own channel?  The sa-update channel? Both?
>>> Are you rsyncing the current channel?
>>
>> Just mirroring the sa-update channel. We are rsyncing
>> rsync.spamassassin.org::updates every 10min as described in
>> https://cwiki.apache.org/confluence/display/SPAMASSASSIN/SaUpdateMirrorSetup
>>
>>> There is no concept of local waiting or GeoIP currently in sa-update.
>>> Rules are cryptographically signed and relatively small that is really not
>>> an issue BUT patches to add a specific URL would be welcome.  I can see
>>> some large providers might want to use this.
>>
>> We have ~50 servers and counting running spamassassin so I figured it
>> would be nicer for everyone if we could pull that data from our own network
> Does this diff fits your use case ? There is space for improvement but it works.
> https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7867
> 
>  Regards
>   Giovanni
> 

Yes, that fits very well. Building a new package with it now... Thanks! :)

-- 
BR/Mvh. Dan Malm, Systems Engineer, One.com

Re: New mirror, how to tell sa-update to use it?

Posted by Giovanni Bechis <gi...@paclan.it>.
On 10/26/20 2:19 PM, Dan Malm wrote:
> On 2020-10-24 21:47, Kevin A. McGrail wrote:
>> Are you trying to publish your own channel?  The sa-update channel? Both?
>> Are you rsyncing the current channel?
> 
> Just mirroring the sa-update channel. We are rsyncing
> rsync.spamassassin.org::updates every 10min as described in
> https://cwiki.apache.org/confluence/display/SPAMASSASSIN/SaUpdateMirrorSetup
> 
>> There is no concept of local waiting or GeoIP currently in sa-update.
>> Rules are cryptographically signed and relatively small that is really not
>> an issue BUT patches to add a specific URL would be welcome.  I can see
>> some large providers might want to use this.
> 
> We have ~50 servers and counting running spamassassin so I figured it
> would be nicer for everyone if we could pull that data from our own network
Does this diff fits your use case ? There is space for improvement but it works.
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7867

 Regards
  Giovanni


Re: New mirror, how to tell sa-update to use it?

Posted by Dan Malm <da...@one.com.INVALID>.
On 2020-10-24 21:47, Kevin A. McGrail wrote:
> Are you trying to publish your own channel?  The sa-update channel? Both?
> Are you rsyncing the current channel?

Just mirroring the sa-update channel. We are rsyncing
rsync.spamassassin.org::updates every 10min as described in
https://cwiki.apache.org/confluence/display/SPAMASSASSIN/SaUpdateMirrorSetup

> There is no concept of local waiting or GeoIP currently in sa-update.
> Rules are cryptographically signed and relatively small that is really not
> an issue BUT patches to add a specific URL would be welcome.  I can see
> some large providers might want to use this.

We have ~50 servers and counting running spamassassin so I figured it
would be nicer for everyone if we could pull that data from our own network.
Just a --mirrors <path-to-mirrors-file> parameter to sa-update would be
nice. I guess I could give putting that in myself a shot though... My
perl-fu isn't all that strong but seems all it would need is a parameter
to override this line:
my $mirby_path = File::Spec->catfile($UPDDir, "MIRRORED.BY");
+ skip the following bit that updates the file if it doesn't exits or is
too old.

-- 
BR/Mvh. Dan Malm, Systems Engineer, One.com

Re: New mirror, how to tell sa-update to use it?

Posted by "Kevin A. McGrail" <km...@apache.org>.
Are you trying to publish your own channel?  The sa-update channel? Both?
Are you rsyncing the current channel?

There is no concept of local waiting or GeoIP currently in sa-update.
Rules are cryptographically signed and relatively small that is really not
an issue BUT patches to add a specific URL would be welcome.  I can see
some large providers might want to use this.
--
Kevin A. McGrail
Member, Apache Software Foundation
Chair Emeritus Apache SpamAssassin Project
https://www.linkedin.com/in/kmcgrail - 703.798.0171


On Fri, Oct 23, 2020 at 5:18 AM Dan Malm <da...@one.com.invalid> wrote:

> Hi,
>
> I've set up an SA Update mirror at https://mirror.one.com/spamassassin/
> if it is of any interest (I know it doesn't match the sa-update.<domain>
> convention, would that be a blocker?)
>
> For our own machines we'd like to set sa-update to use this mirror with
> highest priority but I'm failing to find a way to point sa-update to use
> any custom list of mirrors short of editing MIRRORED.BY, but since
> sa-update updates that file on a regular basis... Any pointers on how I
> would accomplish this?
>
> --
> BR/Mvh. Dan Malm, Systems Engineer, One.com
>