You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by cl...@dwf.com on 2010/01/08 03:14:10 UTC

How to tell if sa-update is actually running

How do I tell if sa-update is actually running?
I mean, yes, I can run it by hand and get no error messages, and with -D
I dont see any problems, still I feel that my stuff isnt current, and that 
there
should be an update.

Should I be getting a message in /var/log/messages?  or /var/log/maillog? 
 or /var/log/sa-update.log ???

After running, I see nothing in any of these locations, and as such, feel that 
something
is wrong (like missing perl modules...)

-- 
                                        Reg.Clemens
                                        reg@dwf.com



Re: How to tell if sa-update is actually running

Posted by mouss <mo...@ml.netoyen.net>.
R P Herrold a écrit :
> On Fri, 8 Jan 2010, mouss wrote:
> 
>> you can query DNS to get the "version" of the rules. for example:
>>
>> $ host -t txt "*.2.3.updates.spamassassin.org"
>> *.2.3.updates.spamassassin.org descriptive text "895075"
>>
>> (2.3 is the "reverse" of 3.2, which corresponds to the SA version you
>> use).
> 
> Looks like 3.3 is not so behaving
> 
> [herrold@new .procmail]$  host -t txt  "*.2.3.updates.spamassassin.org"
> *.2.3.updates.spamassassin.org descriptive text "895075"
> [herrold@new .procmail]$  host -t txt  "*.3.3.updates.spamassassin.org"
> Host *.3.3.updates.spamassassin.org not found: 3(NXDOMAIN)
> [herrold@new .procmail]$ rpm -q spamassassin
> spamassassin-3.3.0-0.29.rc1
> [herrold@new .procmail]$
> 

As Kai said, use the "exact" version (no wildcard):

host -t txt 0.3.3.updates.spamassassin.org

you could do something like:

CHANNEL=updates.spamassassin.org
SA_VERSION=`spamassassin -V | grep -i spamassassin|head -1 |awk '{print
$3}'`
SA_VERSION_REV=`echo ${SA_VERSION} |awk -F. '{print $3 "." $2 "." $1}'`
REMOTE_VERSION=`host -t txt ${SA_VERSION_REV}.${CHANNEL} | grep "
descriptive text"|head -1|awk '{print $4}' | sed 's/\"//g'`

...

although the shell isn't the best language for such tasks ;-p

note that sa-update will do all this for you. so you only need such
games if you suspect something...



Re: How to tell if sa-update is actually running

Posted by Kai Schaetzl <ma...@conactive.com>.
R P Herrold wrote on Sun, 10 Jan 2010 00:13:33 -0500 (EST):

> Looks like 3.3 is not so behaving

it is, a wildcard is missing, You have to use 0.3.3.
Btw, I'm not getting NXDOMAIN on the wildcard but the SPF entry.

Kai

-- 
Get your web at Conactive Internet Services: http://www.conactive.com




Re: How to tell if sa-update is actually running

Posted by R P Herrold <he...@owlriver.com>.
On Fri, 8 Jan 2010, mouss wrote:

> you can query DNS to get the "version" of the rules. for example:
>
> $ host -t txt "*.2.3.updates.spamassassin.org"
> *.2.3.updates.spamassassin.org descriptive text "895075"
>
> (2.3 is the "reverse" of 3.2, which corresponds to the SA version you use).

Looks like 3.3 is not so behaving

[herrold@new .procmail]$  host -t txt  "*.2.3.updates.spamassassin.org"
*.2.3.updates.spamassassin.org descriptive text "895075"
[herrold@new .procmail]$  host -t txt  "*.3.3.updates.spamassassin.org"
Host *.3.3.updates.spamassassin.org not found: 3(NXDOMAIN)
[herrold@new .procmail]$ rpm -q spamassassin
spamassassin-3.3.0-0.29.rc1
[herrold@new .procmail]$

-- Russ herrold

Re: How to tell if sa-update is actually running

Posted by mouss <mo...@ml.netoyen.net>.
clemens@dwf.com a écrit :
> How do I tell if sa-update is actually running?
> I mean, yes, I can run it by hand and get no error messages, and with -D
> I dont see any problems, still I feel that my stuff isnt current, and that 
> there
> should be an update.
> 
> Should I be getting a message in /var/log/messages?  or /var/log/maillog? 
>  or /var/log/sa-update.log ???
> 
> After running, I see nothing in any of these locations, and as such, feel that 
> something
> is wrong (like missing perl modules...)
> 


you can query DNS to get the "version" of the rules. for example:

$ host -t txt "*.2.3.updates.spamassassin.org"
*.2.3.updates.spamassassin.org descriptive text "895075"

(2.3 is the "reverse" of 3.2, which corresponds to the SA version you use).

then

$ head -1 /var/db/spamassassin/3.002005/updates_spamassassin_org.cf
# UPDATE version 895075


Re: How to tell if sa-update is actually running

Posted by Per Jessen <pe...@computer.org>.
clemens@dwf.com wrote:

> How do I tell if sa-update is actually running?
> I mean, yes, I can run it by hand and get no error messages, and with
> -D I dont see any problems, still I feel that my stuff isnt current,
> and that there should be an update.
> 
> Should I be getting a message in /var/log/messages?  or
> /var/log/maillog? or /var/log/sa-update.log ???

No, sa-update doesn't log anything.  It returns rc=0 when an update was
available and installed, rc=1 when no update was available - see man
sa-update for the rest.


/Per Jessen, Zürich