[Mimedefang] problems with external tests

Cliff Hayes chayes at afo.net
Thu Aug 13 15:45:30 EDT 2009


Hello,

I get different external test results depending on who I run as ...
root or defang.  Also, razor doesn't work when run as defang.  I've
tried setting permissions every which way.  the file razor can't find
is there.

su defang -s /bin/bash -c 'spamassassin -x -p
/etc/mail/sa-mimedefang.cf -D --lint'

gives me the following:

[27604] warn: razor2: razor2 check failed: No such file or directory
razor2: Can't read conf file: /root/.razor/razor-agent.conf at
/usr/lib/perl5/vendor_perl/5.10.0/Mail/SpamAssassin/Plugin/Razor2.pm
line 326.
[27604] dbg: razor2: results: spam? 0
[27604] dbg: razor2: results: engine 8, highest cf score: 0
[27604] dbg: razor2: results: engine 4, highest cf score: 0
[27604] dbg: util: current PATH is:
/usr/lib/qt-3.3/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/lib/ccache:/us
r/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
[27604] dbg: util: executable for pyzor was found at /usr/bin/pyzor
[27604] dbg: pyzor: pyzor is available: /usr/bin/pyzor
[27604] dbg: info: entering helper-app run mode
[27604] dbg: pyzor: opening pipe: /usr/bin/pyzor check <
/tmp/.spamassassin2760490EjhEtmp
[27607] dbg: util: setuid: ruid=500 euid=500
[27604] dbg: pyzor: [27607] finished: exit=0x0100
[27604] dbg: pyzor: got response:
/usr/lib/python2.6/site-packages/pyzor/__init__.py:11:
DeprecationWarning: the sha module is deprecated; use the hashlib
module instead\n import
sha\n/usr/lib/python2.6/site-packages/pyzor/client.py:12:
DeprecationWarning: the multifile module has been deprecated since
Python 2.5\n import multifile\nNo servers available! Maybe try the
'discover' command
[27604] dbg: info: leaving helper-app run mode
[27604] dbg: pyzor: failure to parse response
"/usr/lib/python2.6/site-packages/pyzor/__init__.py:11:
DeprecationWarning: the sha module is deprecated; use the hashlib
module instead"
[27604] dbg: pyzor: failure to parse response " import sha"
[27604] dbg: pyzor: failure to parse response
"/usr/lib/python2.6/site-packages/pyzor/client.py:12:
DeprecationWarning: the multifile module has been deprecated since
Python 2.5"
[27604] dbg: pyzor: failure to parse response " import multifile"
[27604] dbg: pyzor: failure to parse response "No servers available!
Maybe try the 'discover' command"
[27604] dbg: dcc: dccifd is not available: no r/w dccifd socket found
[27604] dbg: util: executable for dccproc was found at
/usr/local/bin/dccproc
[27604] dbg: dcc: dccproc is available: /usr/local/bin/dccproc
[27604] dbg: info: entering helper-app run mode
[27604] dbg: dcc: opening pipe: /usr/local/bin/dccproc -H -x 0 -a
72.215.140.72 < /tmp/.spamassassin2760490EjhEtmp
[27608] dbg: util: setuid: ruid=500 euid=500
[27604] dbg: dcc: got response: X-DCC-SIHOPE-DCC-3-Metrics:
sadev.afo.net 1085; Body=2 Fuz1=2 Fuz2=2


spamassassin -x -p /etc/mail/sa-mimedefang.cf -D --lint

gives me the following different results:

[28118] dbg: razor2: part=0 engine=4 contested=0 confidence=0
[28118] dbg: razor2: part=0 engine=8 contested=0 confidence=100
[28118] dbg: razor2: part=1 engine=4 contested=0 confidence=0
[28118] dbg: razor2: part=1 engine=8 contested=0 confidence=100
[28118] dbg: razor2: results: spam? 1
[28118] dbg: razor2: results: engine 8, highest cf score: 100
[28118] dbg: razor2: results: engine 4, highest cf score: 0
[28118] dbg: rules: ran eval rule RAZOR2_CF_RANGE_E8_51_100 ======> got hit
(1)
[28118] dbg: rules: ran eval rule RAZOR2_CHECK ======> got hit (1)
[28118] dbg: rules: ran eval rule RAZOR2_CF_RANGE_51_100 ======> got hit (1)
[28118] dbg: util: current PATH is:
/usr/lib/qt-3.3/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/lib/ccache:/us
r/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
[28118] dbg: util: executable for pyzor was found at /usr/bin/pyzor
[28118] dbg: pyzor: pyzor is available: /usr/bin/pyzor
[28118] dbg: info: entering helper-app run mode
[28118] dbg: pyzor: opening pipe: /usr/bin/pyzor check <
/tmp/.spamassassin28118BDK0Uetmp
[28121] dbg: util: setuid: ruid=0 euid=0
[28118] dbg: pyzor: killed stale helper [28121]
[28118] dbg: pyzor: [28121] terminated: exit=0x000f
[28118] dbg: info: leaving helper-app run mode
[28118] dbg: pyzor: check timed out after 3.5 seconds
[28118] dbg: dcc: dccifd is not available: no r/w dccifd socket found
[28118] dbg: util: executable for dccproc was found at
/usr/local/bin/dccproc
[28118] dbg: dcc: dccproc is available: /usr/local/bin/dccproc
[28118] dbg: info: entering helper-app run mode
[28118] dbg: dcc: opening pipe: /usr/local/bin/dccproc -H -x 0 -a
72.215.140.72 < /tmp/.spamassassin28118BDK0Uetmp
[28122] dbg: util: setuid: ruid=0 euid=0
[28118] dbg: dcc: got response: X-DCC-SIHOPE-DCC-3-Metrics:
sadev.afo.net 1085; Body=10 Fuz1=10 Fuz2=10
[28118] dbg: info: leaving helper-app run mode

I tried to run mimedefang as root but it wouldn't let me

Thanks in advence,

Cliff




More information about the MIMEDefang mailing list