On Wed, 2010-08-04 at 14:54 -0700, Happy Chap wrote:
> Karsten Bräckelmann wrote:

> Hmmm....thanks for your reply Karsten.
> 
> I already had v3.2.3 running on the system, so I thought was upgrading! I
> followed the instructions on the "Upgrading to the latest version" page
> (http://wiki.apache.org/spamassassin/UpgradingVersion) which suggested
> installing by CPAN to upgrade so that's what I did (I didn't think I was
> being foolish!!).

Mixing packages and CPAN never is a good idea...

> No I didn't uninstall 3.2.3 - I didn't know I was supposed to.
> 
> > Restarted spamd *how*? Using the same old init script?
> 
> Yes, executed /etc/init.d/spamd restart (again I didn't think I was being
> foolish!)

What installed that init script? I believe SA built from CPAN does
*not*, so that's either your creation, or more likely part of the distro
supplied package (I assume) that provides SA 3.2.

And, well, in there you probably find the full path of the spamd
executable actually started.

> > The init script most likely calls spamd, where it has been installed
> > previously. The new 3.3 install probably uses a different prefix, and
> > thus is not used by the init script.
> > 
> > Also keep in mind, your $PATH likely uses a different order to find
> > something like sa-update or sa-learn, than Perl uses to pick up its
> > M::SA module.
> 
> You're getting beyond the limit of my knowledge here. Is there an idiots
> guide that you could point me to inorder to try and work through your
> suggestions?

I was merely pointing out, that you now have two instances of each
executable part of SA. spamc, spamd, sa-update, sa-learn, spamassassin.
It all depends on your $PATH, which one is used -- or the path
hard-coded into the calling (init) script.

The idiots guide? Let's start by never have two different versions
installed. :)

> > What does 'spamd --version' report? What about 'which spamd'? What about
> > finding all spamd executable scripts on your system?
> 
> If I just issue a spamd --version at the bash prompt, it does report back as
> SpamAssassin Server version 3.3.1 and as to which spamd, I seem to have 3:
> /user/bin/spamd  /user/sbin/spamd and also /use/bin/X11/spamd
> 
> However, I guess I'm now confused as to why spamc is calling the old spamd
> (v3.2.3) when if I issue spamd from a bash prompt it uses the new one
> (v3.3.1).

spamc (the lightweight SA client) does not call spamd (the daemon). It
merely talks to the daemon, which is already running -- started by your
init script.


-- 
char *t="\10pse\0r\0dtu...@ghno\x4e\xc8\x79\xf4\xab\x51\x8a\x10\xf4\xf4\xc4";
main(){ char h,m=h=*t++,*x=t+2*h,c,i,l=*x,s=0; for (i=0;i<l;i++){ i%8? c<<=1:
(c=*++x); c&128 && (s+=h); if (!(h>>=1)||!t[s+h]){ putchar(t[s]);h=m;s=0; }}}

Reply via email to