Nevermind. I figured it out. Here's the solution for the history books: cd /root/.razor cp razor-agent.conf /etc/mail cd /etc/mail vi sa-mimedefang.cf
- comment out the existing line and replace: #razor_config /root/.razor/razor-agent.conf razor_config /etc/mail/razor-agent.conf cd /etc/mail vi sa-mimedefang.cf - add: pyzor_options --homedir /etc/mail - run: pyzor --homedir /etc/mail discover chmod 644 servers -----Original Message----- From: Cliff Hayes [mailto:[email protected]] Sent: Thursday, August 13, 2009 5:13 PM To: [email protected] Subject: FW: problem with external tests I'm also seeing a problem in my maillog ... so it doesn't just happen during testing: Aug 13 17:09:22 sadev mimedefang-multiplexor[29685]: Slave 1 stderr: razor2: razor2 check failed: Permission denied 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. -----Original Message----- From: Cliff Hayes [mailto:[email protected]] Sent: Thursday, August 13, 2009 4:43 PM To: [email protected] Subject: problem with external tests Hello, I get different external test results depending on who I run a test 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 does exist in the place it's looking. I don't see any indication in any logs that dcc, pyzor, or razor are working so the only way I know to test is the spamassassin command below. I have a sample spam in /scripts/sample1.txt Here's what I get from su defang -s /bin/bash -c 'spamassassin -x -p /etc/mail/sa-mimedefang.cf -D < /scripts/sample1.txt' razor and pyzor are busted. [29802] 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. [29802] dbg: razor2: results: spam? 0 [29802] dbg: razor2: results: engine 8, highest cf score: 0 [29802] dbg: razor2: results: engine 4, highest cf score: 0 [29802] 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 [29802] dbg: util: executable for pyzor was found at /usr/bin/pyzor [29802] dbg: pyzor: pyzor is available: /usr/bin/pyzor [29802] dbg: info: entering helper-app run mode [29802] dbg: pyzor: opening pipe: /usr/bin/pyzor check < /tmp/.spamassassin29802NsPG96tmp [29805] dbg: util: setuid: ruid=500 euid=500 [29802] dbg: pyzor: [29805] finished: exit=0x0100 [29802] dbg: pyzor: got response: No servers available! Maybe try the 'discover' command [29802] dbg: info: leaving helper-app run mode [29802] dbg: pyzor: failure to parse response "No servers available! Maybe try the 'discover' command" [29802] dbg: dcc: dccifd is not available: no r/w dccifd socket found [29802] dbg: util: executable for dccproc was found at /usr/local/bin/dccproc [29802] dbg: dcc: dccproc is available: /usr/local/bin/dccproc [29802] dbg: info: entering helper-app run mode [29802] dbg: dcc: opening pipe: /usr/local/bin/dccproc -H -x 0 -a 72.215.140.72 < /tmp/.spamassassin29802NsPG96tmp [29806] dbg: util: setuid: ruid=500 euid=500 [29802] dbg: dcc: got response: X-DCC-SIHOPE-DCC-3-Metrics: sadev.afo.net 1085; Body=23 Fuz1=23 Fuz2=23 [29802] dbg: info: leaving helper-app run mode Here's what I get when I run as root: spamassassin -x -p /etc/mail/sa-mimedefang.cf -D < /scripts/sample1.txt which looks a lot better ... everything works (dcc response slightly different) [29777] dbg: razor2: part=0 engine=4 contested=0 confidence=0 [29777] dbg: razor2: part=0 engine=8 contested=0 confidence=100 [29777] dbg: razor2: part=1 engine=4 contested=0 confidence=0 [29777] dbg: razor2: part=1 engine=8 contested=0 confidence=100 [29777] dbg: razor2: results: spam? 1 [29777] dbg: razor2: results: engine 8, highest cf score: 100 [29777] dbg: razor2: results: engine 4, highest cf score: 0 [29777] dbg: rules: ran eval rule RAZOR2_CF_RANGE_E8_51_100 ======> got hit (1) [29777] dbg: rules: ran eval rule RAZOR2_CHECK ======> got hit (1) [29777] dbg: rules: ran eval rule RAZOR2_CF_RANGE_51_100 ======> got hit (1) [29777] 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 [29777] dbg: util: executable for pyzor was found at /usr/bin/pyzor [29777] dbg: pyzor: pyzor is available: /usr/bin/pyzor [29777] dbg: info: entering helper-app run mode [29777] dbg: pyzor: opening pipe: /usr/bin/pyzor check < /tmp/.spamassassin297777oMCXdtmp [29780] dbg: util: setuid: ruid=0 euid=0 [29777] dbg: pyzor: [29780] finished: exit=0x0100 [29777] dbg: pyzor: got response: public.pyzor.org:24441 (200, 'OK') 0 0 [29777] dbg: info: leaving helper-app run mode [29777] dbg: dcc: dccifd is not available: no r/w dccifd socket found [29777] dbg: util: executable for dccproc was found at /usr/local/bin/dccproc [29777] dbg: dcc: dccproc is available: /usr/local/bin/dccproc [29777] dbg: info: entering helper-app run mode [29777] dbg: dcc: opening pipe: /usr/local/bin/dccproc -H -x 0 -a 72.215.140.72 < /tmp/.spamassassin297777oMCXdtmp [29781] dbg: util: setuid: ruid=0 euid=0 [29777] dbg: dcc: got response: X-DCC-SIHOPE-DCC-3-Metrics: sadev.afo.net 1085; Body=22 Fuz1=22 Fuz2=22 [29777] dbg: info: leaving helper-app run mode Thanks in advance, Cliff _______________________________________________ NOTE: If there is a disclaimer or other legal boilerplate in the above message, it is NULL AND VOID. You may ignore it. Visit http://www.mimedefang.org and http://www.roaringpenguin.com MIMEDefang mailing list [email protected] http://lists.roaringpenguin.com/mailman/listinfo/mimedefang

