Hi. I've setup MIMEDefang 2.42 and SpamAssassin 2.63 on a Red Hat 9 box, and I'm tring to get things working.

When I run spamassassin by hand as the defang user, it seems
to be doing the bayes check.  But when it's run by mimedefang,
it doesn't seem to be working (I haven't seen a spamassasin
report yet that includes bayes tests, for example).

I turned on debugging for Mail::SpamAssasin to see what was
going on, and I noticed that when I started up mimedefang, the
multiplexor (well, ultimately spamassassin) was trying to create
a .spamassassin directory in the *root* home directory, not in
the defang home directory:

--snip--
Apr 12 12:31:30 XXXX mimedefang-multiplexor: started; minSlaves=2, maxSlaves=10, maxRequests=500, maxIdleTime=300, busyTimeout=600, clientTimeout=10
Apr 12 12:31:30 XXXX mimedefang-multiplexor: Starting slave 0 (pid 26695) (1 running): Bringing slaves up to minSlaves (2)
Apr 12 12:31:30 XXXX mimedefang[26701]: Multiplexor alive - entering main loop
Apr 12 12:31:33 XXXX mimedefang-multiplexor: Starting slave 1 (pid 26703) (2 running): Bringing slaves up to minSlaves (2)
Apr 12 12:31:35 XXXX mimedefang-multiplexor: Slave 0 stderr: debug: Score set 0 chosen.
Apr 12 12:31:35 XXXX mimedefang-multiplexor: Slave 0 stderr: debug: running in taint mode? no
Apr 12 12:31:35 XXXX mimedefang-multiplexor: Slave 0 stderr: debug: ignore: test message to precompile patterns and load modules
Apr 12 12:31:35 XXXX mimedefang-multiplexor: Slave 0 stderr: debug: using "/usr/share/spamassassin" for default rules dir
Apr 12 12:31:35 XXXX mimedefang-multiplexor: Slave 0 stderr: debug: using "/etc/mail/spamassassin" for site rules dir
Apr 12 12:31:35 XXXX mimedefang-multiplexor: Slave 0 stderr: debug: mkdir /root/.spamassassin failed: mkdir /root/.spamassassin: Permission denied at /usr/lib/perl5/site_perl/5.8.0/Mail/SpamAssassin.pm line 1281
Apr 12 12:31:35 XXXX mimedefang-multiplexor: Slave 0 stderr: debug: using "/etc/mail/spamassassin/sa-mimedefang.cf" for user prefs file
Apr 12 12:31:38 XXXX mimedefang-multiplexor: Slave 0 stderr: debug: mkdir /root/.spamassassin failed: mkdir /root/.spamassassin: Permission denied at /usr/lib/perl5/site_perl/5.8.0/Mail/SpamAssassin.pm line 1281 Permission denied
Apr 12 12:31:38 XXXX mimedefang-multiplexor: Slave 0 stderr: debug: bayes: no dbs present, cannot scan: /root/.spamassassin/bayes_toks
Apr 12 12:31:38 XXXX mimedefang-multiplexor: Slave 0 stderr: debug: Score set 1 chosen.
Apr 12 12:31:38 XXXX mimedefang-multiplexor: Slave 0 stderr: debug: Initialising learner
Apr 12 12:31:38 XXXX mimedefang-multiplexor: Slave 0 stderr: debug: mkdir /root/.spamassassin failed: mkdir /root/.spamassassin: Permission denied at /usr/lib/perl5/site_perl/5.8.0/Mail/SpamAssassin.pm line 1281 Permission denied
Apr 12 12:31:38 XXXX mimedefang-multiplexor: Slave 0 stderr: debug: bayes: no dbs present, cannot scan: /root/.spamassassin/bayes_toks
---snip---



I get similar complaints when a message is scanned.


The mimedefang-multiplexor (and mimedefang.pl) are running as the
defang user, not as root.  So why is it looking in the root home dir?
I think I can work around this by setting the bayes_path in the
config file, but I'd still like to know what's going on here.

Thanks!

-David

---------------------------------------------------------
D a v i d  E i s n e r        c r a d l e @ u m d . e d u
CALCE EPSC                         University of Maryland


_______________________________________________ Visit http://www.mimedefang.org and http://www.canit.ca MIMEDefang mailing list [EMAIL PROTECTED] http://lists.roaringpenguin.com/mailman/listinfo/mimedefang

Reply via email to