Pyzor not working within MS, fine from command line
Glenn Steen
glenn.steen at gmail.com
Tue Apr 8 14:10:46 IST 2014
True, it does look that way... I was more thinking the whole SA run, not
the individual subcommand, but that'd likely look different...
Return 6 in the OS sense is "no such device or address" ... And looking at
the code for pyzor, that seems pretty much to be it (... Not the strongest
python coder there is, so I might well be wrong.). Question then becomes
why, when it works from a "su - postfix -s /bin/bash" (or similar). If the
host was wrong, it'd be an exit code of 2, likely, if it was a stranght
FW/routing problem, likely a normal timeout. Hmmm.
Sorry, I'm out of ideas.
--
-- Glenn
On 8 April 2014 12:25, Stef Morrell <stef at aoc-uk.com> wrote:
> Hi Glenn,
>
> On 08 April 2014 10:22 Glenn Steen wrote:
> > So, to the problem... When you (Stef) do a discove/ping, does
> > it take ... a long while? ISTR there being some settings in
> > SA and/or MS for timeouts that are ... Very optimistic.
> > Upping them significantly used to be a given (and still am!)
> > for things like huge bayes files etc, so that they don't get
> > ... rudely interrupted:-). The returncode might lead in that
> > direction...
>
> No, from command line (as postfix, or indeed as root) it's
> pretty much instant. SA is reporting Pyzor as giving exit 6,
> however my Google-fu fails me on getting any useful information
> about that (or any!) return code.
>
> Also if you look at the log fragment I posted it's less than a
> second for it to fail when running MS with debug.
>
> 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
> --
> MailScanner mailing list
> mailscanner at lists.mailscanner.info
> http://lists.mailscanner.info/mailman/listinfo/mailscanner
>
> Before posting, read http://wiki.mailscanner.info/posting
>
> Support MailScanner development - buy the book off the website!
>
--
-- Glenn
email: glenn < dot > steen < at > gmail < dot > com
work: glenn < dot > steen < at > ap1 < dot > se
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.mailscanner.info/pipermail/mailscanner/attachments/20140408/f30aae25/attachment.html
More information about the MailScanner
mailing list