On Tue, 2014-09-02 at 11:27 -0700, John Hardin wrote:
> On Tue, 2 Sep 2014, Chris wrote:
> 
> >>> ifplugin Mail::SpamAssassin::Plugin::Pyzor
> >>> pyzor_path /usr/local/bin/pyzor
> >>> pyzor_options --homedir /home/chris/.pyzor
> >>> endif
> >
> > Would it be better if I changed the pyzor home dir
> > to /etc/mail/spamassassin and put the 'servers' file there?
> 
> In general that's a better way to do it. The alternative would be if (for 
> example) spamd was running under a dedicated daemon user amavis, then you 
> could leave the pyzor home dir under ~amavis. But you don't really want to 
> have system config files living under real user directories.
> 
Hmm, after making the change in my local.cf and restarting SA I went and
took my afternoon nap. Coming back and checking my hourly syslog
snippits I saw:

Sep  2 13:11:32 localhost spamd[26055]: pyzor: check failed: internal
error, python traceback seen in response
Sep  2 13:11:46 localhost spamd[26055]: pyzor: check failed: internal
error, python traceback seen in response
Sep  2 13:14:07 localhost spamd[26055]: pyzor: check failed: internal
error, python traceback seen in response
Sep  2 13:53:52 localhost spamd[26055]: pyzor: check failed: internal
error, python traceback seen in response

I had changed my local.cf to read:

ifplugin Mail::SpamAssassin::Plugin::Pyzor
pyzor_path /usr/local/bin/pyzor
pyzor_options --homedir /etc/mail/spamassassin
endif

and put the servers file as noted above by itself. That was possibly
incorrect as I copied the .pyzor folder over from my home
to /etc/mail/spamassassin and added /.pyzor after the pyzor homedir path
I had. Just happened to have a new spam in my spam folder and ran
spamassassin -D -r on it and it looks like it's working again:

Sep  2 15:10:34.025 [30796] dbg: pyzor: pyzor is
available: /usr/local/bin/pyzor
Sep  2 15:10:34.025 [30796] dbg: dns: entering helper-app run mode
Sep  2 15:10:34.025 [30796] dbg: pyzor: opening
pipe: /usr/local/bin/pyzor --homedir /etc/mail/spamassassin/.pyzor
report < /tmp/.spamassassin30796Fg233vtmp
Sep  2 15:10:34.028 [30799] dbg: util: setuid: ruid=1000 euid=1000
Sep  2 15:10:34.254 [30796] dbg: pyzor: [30799] reporter finished
successfully
Sep  2 15:10:34.254 [30796] dbg: dns: leaving helper-app run mode
Sep  2 15:10:34.255 [30796] info: reporter: spam reported to Pyzor

Hopefully putting the whole .pyzor folder there corrected the issue.

Chris


-- 
Chris
31.11°N 97.89°W (Elev. 1092 ft)
15:11:49 up 2 days, 17:15, 3 users, load average: 0.17, 0.23, 0.22
Ubuntu 14.04 LTS, kernel 3.13.0-35-generic

Reply via email to