Hi,

I've installed Spamassassin 3.4.1 on FreeBSD 10.3 together with
Pyzor 0.7.0 and Razor 2.84. I'm using Spamassassin through
amavisd-new.

When executed manually, both, Razor and Pyzor are fine:

$ pyzor --homedir /some/dir ping
public.pyzor.org:24441  (200, 'OK')


$ razor-check -d <some mail>
[...]
Apr 22 12:45:36.434380 check[26793]: [ 3] mail 1 is not known spam.
Apr 22 12:45:36.434408 check[26793]: [ 5] disconnecting from server 
c301.cloudmark.com
Apr 22 12:45:36.434455 check[26793]: [ 4] c301.cloudmark.com << 5
Apr 22 12:45:36.434480 check[26793]: [ 6] a=q
Apr 22 12:45:36.434552 check[26793]: [ 8] razor-check finished successfully.

I would say, that look good.

In my /usr/local/etc/mail/spamassassin I have defined these
lines:
[...]
loadplugin Mail::SpamAssassin::Plugin::Razor2
use_razor2 1
razor_config /some/dir
[...]
loadplugin Mail::SpamAssassin::Plugin::Pyzor
use_pyzor 1
pyzor_path /usr/local/bin/pyzor

According to the documentation, these setting should be fine. But
if I execute Spamassasin with the debug option, I'm seeing this:

$ spamassassin -t -D pyzor < sample-spam.txt 
Apr 22 12:53:38.154 [27799] dbg: pyzor: network tests on, attempting Pyzor
Received: from localhost by some.host.com
        with SpamAssassin (version 3.4.1);
        Fri, 22 Apr 2016 12:53:39 +0200
From: Sender <sen...@example.net>

If I compare the debug output with a machine, where Pyzor and
Razor works, I can see a huge difference:

$ spamassassin -t -D pyzor < /opt/csw/share/doc/spamassassin/sample-spam.txt
Apr 22 11:18:45.711 [17259] dbg: pyzor: network tests on, attempting Pyzor
Apr 22 11:19:08.924 [17259] dbg: pyzor: pyzor is available: /opt/csw/bin/pyzor
Apr 22 11:19:08.928 [17259] dbg: pyzor: opening pipe: /opt/csw/bin/pyzor check 
< /tmp/.spamassassin172599yV3CXtmp
Apr 22 11:19:09.422 [17259] dbg: pyzor: [17266] finished: exit 1
Apr 22 11:19:09.423 [17259] dbg: pyzor: got response: public.pyzor.org:24441 
(200, 'OK') 0 2
Received: from localhost by another.host.com
        with SpamAssassin (version 3.4.1);
        Fri, 22 Apr 2016 11:19:10 +0200
From: Sender <sen...@example.net>

As I understand, Spamassassin is aware of the Pyzor lines in it's
configuration, but it's not using it. 

Unfortunately I don't really see what's wrong with my
configuration, so any help is appreciated.



Ihsan


-- 
ih...@dogan.ch http://blog.dogan.ch/

Reply via email to