On 2011-06-30 17:50, J4K wrote:
On 06/30/2011 05:38 PM, Axb wrote:
On 2011-06-30 17:34, J4K wrote:
On 06/30/2011 05:27 PM, Axb wrote:
spamassassin --lint -D bayes
      Spamd runs as root.

* make a user/group spamd and run as such

don't run as root.
I'm a tad confused:

spamd is launched with "--username=spamd  "

ok.. you said "Spamd runs as root."

in that case:

bayes_sql_override_username spamd

then as per Bowie:

 sa-learn --username=spamd --ham /path/to/ham
 sa-learn --username=spamd --spam /path/to/spam

then
sa-learn --dump magic





/usr/sbin/spamd --create-prefs -x -q --max-children 3 --sql-config
--nouser-config --username spamd --helper-home-dir -s /var/log/spamd.log
--virtual-config-dir=/users/%d/%u -d --pidfile=/var/run/spamd.pid

Do you mean to edit the /etc/init.d/spamassassin script so that when its
started the whole command is prefixed with su -c, and removing the
--username=spamd

# su - spamd -c /usr/sbin/spamd --create-prefs -x -q --max-children 3
--sql-config --nouser-config  --helper-home-dir -s /var/log/spamd.log
--virtual-config-dir=/users/%d/%u -d --pidfile=/var/run/spamd.pid


set:

bayes_sql_override_username spamd

then feed bayes manually

then run

sa-learn --dump magic

and show us the output






Reply via email to