Razor and Pyzor problems...

Denis Beauchemin Denis.Beauchemin at USherbrooke.ca
Wed Nov 15 18:45:04 GMT 2006


Hello everybody,

The emails exchanged today prompted me to look at my logs to see how I 
was doing.  It turns out that I was not doing so well with Pyzor: no 
hits in more than 30 hours...  I then tried the alternate server with 
the following errors (taken from a debug MS run):

[1361] dbg: plugin: loading Mail::SpamAssassin::Plugin::Pyzor from @INC
[1361] dbg: pyzor: network tests on, attempting Pyzor
[1361] dbg: plugin: registered 
Mail::SpamAssassin::Plugin::Pyzor=HASH(0x9f2c8b4)
[1361] dbg: plugin: fixed relative path: 
/var/lib/spamassassin/3.001007/updates_spamassassin_org/25_pyzor.cf
[1361] dbg: config: using 
"/var/lib/spamassassin/3.001007/updates_spamassassin_org/25_pyzor.cf" 
for included file
[1361] dbg: config: read file 
/var/lib/spamassassin/3.001007/updates_spamassassin_org/25_pyzor.cf
[1361] dbg: pyzor: pyzor is available: /usr/bin/pyzor
[1361] dbg: pyzor: opening pipe: /usr/bin/pyzor check < 
/tmp/.spamassassin1361PABAvHtmp
[1361] dbg: pyzor: [1376] finished: exit=0x0100
[1361] dbg: pyzor: got response: 66.250.40.33:24441 TimeoutError: 
\n82.94.255.100:24441 (200, 'OK') 0 0
[1361] dbg: pyzor: failure to parse response "66.250.40.33:24441 
TimeoutError: "
[1442] dbg: pyzor: pyzor is available: /usr/bin/pyzor
[1442] dbg: pyzor: opening pipe: /usr/bin/pyzor check < 
/tmp/.spamassassin14426gamI0tmp
[1442] dbg: pyzor: [1453] finished: exit=0x0100
[1442] dbg: pyzor: got response: Traceback (most recent call last):\n 
File "/usr/bin/pyzor", line 4, in ?\n py
zor.client.run()\n File 
"/usr/lib/python2.3/site-packages/pyzor/client.py", line 934, in run\n 
ExecCall().run(
)\n File "/usr/lib/python2.3/site-packages/pyzor/client.py", line 188, 
in run\n if not apply(dispatch, (self,
args)):\n File "/usr/lib/python2.3/site-packages/pyzor/client.py", line 
262, in check\n for digest in FileDige
ster(sys.stdin, self.digest_spec):\n File 
"/usr/lib/python2.3/site-packages/pyzor/client.py", line 615, in __i
nit__\n self.digester = iter(get_file_digester(fp, spec, mbox))\n File 
"/usr/lib/python2.3/site-packages/pyzor
/client.py", line 633, in get_file_digester\n spec, 
seekable).get_digest(),)\n File "/usr/lib/python2.3/site-p
ackages/pyzor/client.py", line 467, in __init__\n (fp, offsets) = 
self.get_line_offsets(fp)\n File "/usr/lib/p
ython2.3/site-packages/pyzor/client.py", line 531, in get_line_offsets\n 
for line in fp:\n File "/usr/lib/pyth
on2.3/site-packages/pyzor/client.py", line 702, in next\n l = 
self.readline()\n File "/usr/lib/python2.3/site-
packages/pyzor/client.py", line 694, in readline\n self.curfile = 
self.__class__(self.multifile)\n File "/usr/
lib/python2.3/site-packages/pyzor/client.py", line 671, in __init__\n 
mimetools.decode(msg.fp, self.curfile, e
ncoding)\n File "/usr/lib/python2.3/mimetools.py", line 152, in decode\n 
return quopri.decode(input, output)\n
 File "/usr/lib/python2.3/quopri.py", line 122, in decode\n data = 
input.read()\n File "/usr/lib/python2.3/mul
tifile.py", line 118, in read\n return ''.join(self.readlines())\n File 
"/usr/lib/python2.3/multifile.py", lin
e 112, in readlines\n line = self.readline()\n File 
"/usr/lib/python2.3/multifile.py", line 80, in readline\n
raise Error, 'sudden EOF in MultiFile.readline()'\nmultifile.Error: 
sudden EOF in MultiFile.readline()
pyzor: check failed: internal error

The traceback doesn't look good and nor does the following:
[1361] dbg: pyzor: got response: 66.250.40.33:24441 TimeoutError: 
\n82.94.255.100:24441 (200, 'OK') 0 0

Looks like it tried the original server and it timed out... but why is 
it prepending the \n in front of the IP address?  I flushed the second 
server from my /root/.pyzor/server (it had the 2 servers each on a 
separate line) and reran it.  I still got a traceback but no timeout 
this time...

Now for Razor.  I installed it (wasn't running it yet) and enabled it 
but I get no hit.  Here are the excerpts from my MS debug run:

[1361] dbg: plugin: loading Mail::SpamAssassin::Plugin::Razor2 from @INC
[1361] dbg: razor2: razor2 is available, version 2.82
[1361] dbg: plugin: registered 
Mail::SpamAssassin::Plugin::Razor2=HASH(0x9d19b6c)
[1361] dbg: plugin: loading Mail::SpamAssassin::Plugin::Razor2 from @INC
[1361] dbg: razor2: razor2 is available, version 2.82
[1361] dbg: plugin: did not register 
Mail::SpamAssassin::Plugin::Razor2=HASH(0x9e07954), already registered
[1361] dbg: plugin: fixed relative path: 
/var/lib/spamassassin/3.001007/updates_spamassassin_org/25_razor2.cf
[1361] dbg: config: using 
"/var/lib/spamassassin/3.001007/updates_spamassassin_org/25_razor2.cf" 
for includedfile
[1361] dbg: config: read file 
/var/lib/spamassassin/3.001007/updates_spamassassin_org/25_razor2.cf

Looks like it's finding it OK but it doesn't call it.  What could I have 
missed?  My system is using iptables and can open outgoing connections 
to wherever it pleases.  Same setup on our external firewall...  Oh! SA 
is 3.1.7.

Thanks!

Denis

-- 
   _
  °v°   Denis Beauchemin, analyste
 /(_)\  Université de Sherbrooke, S.T.I.
  ^ ^   T: 819.821.8000x62252 F: 819.821.8045


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3595 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.mailscanner.info/pipermail/mailscanner/attachments/20061115/634473ed/smime.bin


More information about the MailScanner mailing list