First was to get amavisd chrooted by the most direct method. that was accomplished by: # mkdir -p /var/amavisd/var # ln -s / /var/amavisd/var/amavisd
Then some proof-reading of my config files located the 2nd error in /etc/mail/spamassassin/local.cf -- I made a typo in the "bayes_path" setting (/var/amavisd/var/amavis/.spamassassin/bayes instead of the correct /var/amavis/.spamassassin/bayes).
Thanks to the author of the README.chroot document that comes with amavisd for suggesting using the absolute path to the symlink (doh!).
Cheers! d.
Derek Shaw - spamAssassin testing wrote:
I am in a *very* similar situation. I've been working on this particular problem for better than a week, and seeing this message has prompted me to ask for help, too.
In my case, the problem crops up when I try to run amavisd (and by inclusion, SpamAssassin) chrooted.
When I chroot amavisd, (and edit all the seemingly-applicable paths in amavisd.conf and local.cf config files), I can get all of SA to run correctly, except that I get exactly the same effect as DJA describes above.
When chrooted, slightly better than 90% of my spam is flagged as ***SPAM***, the rest shows the X-Spam-Status: No," with "tests=..." following. The BAYES_* tests never show up (neither in the flagged nor the non-flagged variety).
When I run it non-chrooted, everything works perfectly (including the bayes tests). So, is there something in the bayes model, or is there a bayes setting in local.cf that I've missed (I've looked at perldoc -U Mail::SpamAssassin::Conf so often I can almost recite it)?
As I mentioned, SA is running from amavisd (chrooted to /home/amavis), under the non-privileged UID amavis. For testing purposes I have had to give the UID amavis a shell (/bin/bash). My original (and intended) configuration denies a shell to this UID.
The one thing that I've tried that didn't work (that seems like it should) is the trick (described in http://lawmonkey.org/anti-spam.html#installamavisd)of making a symlink of / pointing at home/amavis, so that when it's chrooted, amavisd looks in the correct spot. On my slackware box this does not work (ln -s / var/amavisd)
------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk