Pyzor not working within MS, fine from command line

Stef Morrell stef at aoc-uk.com
Fri Apr 4 15:54:19 IST 2014


I wonder if any of you can shed any light on this:

I've got:

This is CentOS release 6.5 (Final)
This is Perl version 5.010001 (5.10.1)
This is MailScanner version 4.84.6
3.004000        Mail::SpamAssassin

And Pyzor refuses work correctly, this output from running MS with both debug and debug SA turned on:

15:16:58 Apr  4 15:16:58.529 [3554] dbg: plugin: loading Mail::SpamAssassin::Plugin::Pyzor from @INC
15:16:58 Apr  4 15:16:58.531 [3554] dbg: pyzor: network tests on, attempting Pyzor
15:16:58 Apr  4 15:16:58.804 [3554] dbg: config: fixed relative path: /var/lib/spamassassin/3.004000/updates_spamassassin_org/25_pyzor.cf
15:16:58 Apr  4 15:16:58.804 [3554] dbg: config: using "/var/lib/spamassassin/3.004000/updates_spamassassin_org/25_pyzor.cf" for included file
15:16:58 Apr  4 15:16:58.804 [3554] dbg: config: read file /var/lib/spamassassin/3.004000/updates_spamassassin_org/25_pyzor.cf
15:17:00 Apr  4 15:17:00.409 [3554] dbg: pyzor: pyzor is available: /usr/bin/pyzor
15:17:00 Apr  4 15:17:00.410 [3554] dbg: pyzor: opening pipe: /usr/bin/pyzor --homedir /var/spool/postfix/.pyzor check < /var/spool/MailScanner/incoming/SpamAssassin-Temp/.spamassassin3554JjLLoPtmp
15:17:00 Apr  4 15:17:00.414 [3554] info: pyzor: [3574] error: exit 6
15:17:00 Apr  4 15:17:00.414 [3554] dbg: pyzor: check failed: no response
15:17:30 Apr  4 15:17:30.711 [3591] dbg: pyzor: pyzor is available: /usr/bin/pyzor
15:17:30 Apr  4 15:17:30.712 [3591] dbg: pyzor: opening pipe: /usr/bin/pyzor --homedir /var/spool/postfix/.pyzor check < /var/spool/MailScanner/incoming/SpamAssassin-Temp/.spamassassin3591ncweDTtmp
15:17:30 Apr  4 15:17:30.716 [3591] info: pyzor: [3594] error: exit 6
15:17:30 Apr  4 15:17:30.716 [3591] dbg: pyzor: check failed: no response

Initially postfix couldn't pyzor ping, so I wondered about permissions and created a .pyzor in /var/spool/postfix and as you can see from the log above specified that path. Still no luck, though postfix can now run pyzor happily from command line.

[root at fedecks mailscanner]# su - postfix -s /bin/bash
-bash-4.1$ pyzor ping
public.pyzor.org:24441  (200, 'OK')
-bash-4.1$ cd /var/spool/postfix/hold/
-bash-4.1$ pyzor check < 4FCB5E0406 
public.pyzor.org:24441  (200, 'OK')     0       0
-bash-4.1$ logout

Which isn't ruling out permissions, but puts it beyond me :)

Has anyone any bright ideas?


More information about the MailScanner mailing list