Am 06/12/2005 06:18 PM schrieb Bookworm:
Most of the email I'm trying to run sa-learn on is owned by vpopmail, and my spamassassin runs as the user 'spamd'.

Even when I try sa-learn -u spamd, it continually learns as 'root' - filling a bayes database in the root directory. Is there anyway to stop this? I REALLY don't want to have to keep either 1) moving databases around, or 2) chmod and chowning directories and files so that the spamd user can learn from 'unlearned' spam.

Hej!
You could try this (man su), if you are on an unix like system:
su -s /bin/bash spamd -c "/usr/bin/sa-learn --spam --mbox unlearnd_spam"

Ade!
Thomas

Reply via email to