Package: sa-learn Severity: wishlist
Hi, I've been trying to get sa-exim working for a while. The first try worked rather well, but I didn't get bayes filtering working. It turns out that, although spamd runs as root, it gets the --helper-home-dir option passed. This means that when sa-exim uses spamd for scanning, it looks in /var/spool/exim4 for the bayes database, not in /root. This is rather confusing. I would propose adding the following paragrah to README.Debian: Bayesian filtering and sa-learn ------------------------------- To get Bayesian filtering working in spamassassin, it needs to "learn" from a number of sample spam and non-spam messages. To do this, spamassassin provides the sa-learn command. Using the sa-learn command, you can build up a database that is used in bayesian filtering. This database is, by default, stored in ~/.spamassassin. Running sa-learn as root will build this database in root's homedirectory. Now, even though spamd runs as root by default, it will not use the database from root's homedir. By default, spamd runs with the --helper-home-dir option, meaning that it will use the homedir of however is calling spamc (which in this case is exim through sa-exim, so it will use the database in /var/spool/exim4/.spamassassin). To get sa-learn to update the right database, call it as sa-learn --dbpath /var/spool/exim4/.spamassassin Gr. Matthijs -- System Information: Debian Release: 4.0 APT prefers stable APT policy: (500, 'stable') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.9-023stab044.11-enterprise Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]