You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by ji...@jidanni.org on 2007/08/20 23:14:30 UTC

sa-update doesn't connect to updates.spamassassin.org

How does sa-update know if to update or not without going over the
network?

channel: attempting channel updates.spamassassin.org
channel: update directory /home/jidanni/var/spamassassin/3.002003/updates_spamassassin_org
channel: channel cf file /home/jidanni/var/spamassassin/3.002003/updates_spamassassin_org.cf
channel: channel pre file /home/jidanni/var/spamassassin/3.002003/updates_spamassassin_org.pre
channel: metadata version = 556472
dns: 3.2.3.updates.spamassassin.org => 556472, parsed as 556472
channel: current version is 556472, new version is 556472, skipping channel
diag: updates complete, exiting with code 1

# host updates.spamassassin.org
updates.spamassassin.org A record currently not present
# tcpflow -i ppp0 & sa-update
shows no traffic.

I see, maybe it detected that the last time I ran sa-update was less
than 24 hours ago and so didn't even try?

But http://wiki.apache.org/spamassassin/RuleUpdates
says "How often should I run sa-update? As often as you like."

P.S., I suppose one must be subscribed to this list to post. But then
how can I adjust my subscription so that I don't get mail, as I read
this via Gmane? No I don't want to get a Nabble account.

Re: sa-update doesn't connect to updates.spamassassin.org

Posted by Theo Van Dinter <fe...@apache.org>.
On Tue, Aug 21, 2007 at 05:14:30AM +0800, jidanni@jidanni.org wrote:
> How does sa-update know if to update or not without going over the
> network?

Tachyon particles.  Ok, seriously, it couldn't.

> channel: metadata version = 556472
> dns: 3.2.3.updates.spamassassin.org => 556472, parsed as 556472
> channel: current version is 556472, new version is 556472, skipping channel
> diag: updates complete, exiting with code 1

Ok, you're running 556472 and the latest version is 556472, so no update
available.

> # host updates.spamassassin.org
> updates.spamassassin.org A record currently not present

Right, there is no A record.

> # tcpflow -i ppp0 & sa-update
> shows no traffic.

Looking for version numbers happens via UDP, it's a DNS lookup, I'm guessing
tcpflow doesn't look at UDP?  (this is the first time I've heard of tcpflow)

> I see, maybe it detected that the last time I ran sa-update was less
> than 24 hours ago and so didn't even try?

Nope, you can run it as often as you want.

-- 
Randomly Selected Tagline:
"Theo: Your message content is oftentimes upstaged by your randomly
 generated taglines." - Jim Flanagan

reading this list via Gmane, no need for extra copy

Posted by ji...@jidanni.org.
Question: any way to post a message to this list via email and since I
read this list via Gmane, not be sent needless copies of all mail
posted to this list? I don't want a Nabble account either.

j> http://www.ezmlm.org/ezman/ezman1.html says after long research,

j> "To temporarily leave an ezmlm list, just unsubscribe. Subscribe again
j> later, when you wish to receive messages or digests again. ezmlm
j> processes such requests virtually instantaneously, removing the need
j> for a temporary ``hold'' command."

j> How wonderful.


Re: sa-update doesn't connect to updates.spamassassin.org

Posted by ji...@jidanni.org.
Ah, of course, the DNS response was already cached by pdnsd, and I
can't figure out from the man page how to use tcpflow's udp options
anyway.

But more importantly, for my second question,
http://www.ezmlm.org/ezman/ezman1.html says after long research,

"To temporarily leave an ezmlm list, just unsubscribe. Subscribe again
later, when you wish to receive messages or digests again. ezmlm
processes such requests virtually instantaneously, removing the need
for a temporary ``hold'' command."

How wonderful.

Re: sa-update stuck in July

Posted by jidanni <ji...@jidanni.org>.
Hmm, it seems there perhaps is little hope of updates for the current
release of spamassassin, as they changed the format:

< require_version @@VERSION@@
---
> require_version 3.003000

And as you mention, one would be crazy to download 3.003000.

So what might you recommend one do if one wants to have their spamassassin
keep abreast of current spam patterns?

(The above diff made with:)
set -ue 556472 569778
for v
do
    mkdir /tmp/$v
    cd /tmp/$v
    wget http://daryl.dostech.ca/sa-update/asf/$v.tar.gz
    tar xf $v.tar.gz
    rm $v.tar.gz
done
diff -r /tmp/{$1,$2}

-- 
View this message in context: http://www.nabble.com/sa-update-doesn%27t-connect-to-updates.spamassassin.org-tf4301586.html#a12340520
Sent from the SpamAssassin - Users mailing list archive at Nabble.com.


Re: sa-update stuck in July

Posted by Theo Van Dinter <fe...@apache.org>.
On Sat, Aug 25, 2007 at 06:58:23AM +0800, jidanni@jidanni.org wrote:
> OK, but clearly in http://daryl.dostech.ca/sa-update/asf/ there are
> plenty of fresh August 2007 updates, but constant loser me is stuck with
> 556472.tar.gz 15-Jul-2007

Yes, there are other updates in the channel that are newer, but not for
your version of SA.  An update channel is for all versions of SA, and the
DNS record specifies for a given version of SA what update to use, if any.

> So what version of spamassassin do I have to install in order to enjoy
> those August updates like so many others must be enjoying?

3.3, currently in development.  Those are updated nightly through an
automated system.  It's unlikely there are "so many others" enjoying
those updates, since there are likely very few people crazy enough to
run 3.3 right now.  (Please note that running 3.3 may functionally ruin
your ability to have children ... bleeding edge code ... blah blah blah.)

$ host -t txt 0.3.3.updates.spamassassin.org
0.3.3.updates.spamassassin.org descriptive text "569300"

-- 
Randomly Selected Tagline:
"War should be the last resort of people of conscience, not the first resort."
         - J. Michael Straczynski

Re: sa-update stuck in July

Posted by ji...@jidanni.org.
TVD> All that means is that when in doubt, once a day is probably a good frequency

OK, but clearly in http://daryl.dostech.ca/sa-update/asf/ there are
plenty of fresh August 2007 updates, but constant loser me is stuck with
556472.tar.gz 15-Jul-2007

So what version of spamassassin do I have to install in order to enjoy
those August updates like so many others must be enjoying?

Re: sa-update stuck in July

Posted by Theo Van Dinter <fe...@apache.org>.
On Sat, Aug 25, 2007 at 05:50:02AM +0800, jidanni@jidanni.org wrote:
> Gentlemen, what's the deal. I installed the latest version of
> spamassassin, and http://wiki.apache.org/spamassassin/RuleUpdates says
> run sa-update once a day, and I do, and always I see

You're picking and choosing what you take from the answer on the page.  It
says:

"As often as you like. It typically depends on what time-frame is comfortable
for you, and how quickly channels are going to be publishing updates.
Generally speaking, once a day is a good starting point."

All that means is that when in doubt, once a day is probably a good frequency
to look for updates.  It does not state that you will find updates when you
look for them.

> >> channel: current version is 556472, new version is 556472, skipping channel

Yep.  That's the latest published version for 3.2:

$ host -t txt 2.2.3.updates.spamassassin.org
2.2.3.updates.spamassassin.org descriptive text "556472"

> I.e., other people must be enjoying fresh updates, whereas terminal
> loser me is stuck back in July, even though I just installed freshest
> SpamAssassin 3.2.3 just last week. What gives?

Rule updates are done manually, and there is no specific schedule to them.
They typically happen as people do rule development and find rules that work
well.  This usually depends on the rule developers having time. :)

-- 
Randomly Selected Tagline:
Microsoft Corp., concerned by the growing popularity of the free 32-bit
 operating system for Intel systems, Linux, has employed a number of top
 programmers from the underground world of virus development. Bill Gates stated
 yesterday: "World domination, fast -- it's either us or Linus". Mr. Torvalds
 was unavailable for comment ...
 (rjm@swift.eng.ox.ac.uk (Robert Manners), in comp.os.linux.setup)

sa-update stuck in July

Posted by ji...@jidanni.org.
Gentlemen, what's the deal. I installed the latest version of
spamassassin, and http://wiki.apache.org/spamassassin/RuleUpdates says
run sa-update once a day, and I do, and always I see

>> channel: current version is 556472, new version is 556472, skipping channel

Upon further investigation (which was not helped by a certain "Revert
to revision 23" on
http://wiki.apache.org/spamassassin/RuleUpdates?action=info )
by examining the TCP streams (actually just
http://localhost:8080/index/lasttime), as even sa-update -D will not
divulge just where it is getting its updates from, I find

$ wwwoffle -O http://daryl.dostech.ca/sa-update/asf/556472.tar.gz|grep -a ^Last
Last-Modified: Sun, 15 Jul 2007 22:55:37 GMT

$ w3m -dump http://daryl.dostech.ca/sa-update/asf/|grep 2.-Aug|tail -1
[   ] 569300.tar.gz.sha1      24-Aug-2007 04:51   84

I.e., other people must be enjoying fresh updates, whereas terminal
loser me is stuck back in July, even though I just installed freshest
SpamAssassin 3.2.3 just last week. What gives?

Re: sa-update doesn't connect to updates.spamassassin.org

Posted by David B Funk <db...@engineering.uiowa.edu>.
On Tue, 21 Aug 2007 jidanni@jidanni.org wrote:

> How does sa-update know if to update or not without going over the
> network?
>
> channel: attempting channel updates.spamassassin.org
> channel: update directory /home/jidanni/var/spamassassin/3.002003/updates_spamassassin_org
> channel: channel cf file /home/jidanni/var/spamassassin/3.002003/updates_spamassassin_org.cf
> channel: channel pre file /home/jidanni/var/spamassassin/3.002003/updates_spamassassin_org.pre
> channel: metadata version = 556472
> dns: 3.2.3.updates.spamassassin.org => 556472, parsed as 556472
> channel: current version is 556472, new version is 556472, skipping channel
> diag: updates complete, exiting with code 1

sa-update uses a DNS lookup to check the serial number. Notice your debug
line that says:

  dns: 3.2.3.updates.spamassassin.org => 556472, parsed as 556472

The DNS lookup -is- a network operation, so it is going over the network.
You just did not recognize it as such.



-- 
Dave Funk                                  University of Iowa
<dbfunk (at) engineering.uiowa.edu>        College of Engineering
319/335-5751   FAX: 319/384-0549           1256 Seamans Center
Sys_admin/Postmaster/cell_admin            Iowa City, IA 52242-1527
#include <std_disclaimer.h>
Better is not better, 'standard' is better. B{