On Wed, 22 Aug 2012, Bowie Bailey wrote:
On 8/21/2012 5:51 PM, Ben Johnson wrote:
What good is the --username switch, then?
See other responses.
Why does this command train the "root" user's database?
Because you ran the command as root.
I apologize, I didn't provide sufficient details. When I said "train as
the user who runs SA" I meant "su to that OS user ID before running the
sa-learn command".
You can either override the default Bayes database files path to
explicitly specify a shared global database as has been suggested, or run
sa-learn as the amavis user via su or a cron job. Defining a global bayes
database is probably a better solution overall, but bear in mind if you
have to wipe and retrain you need to check the permissions on the new
database files after you run sa-learn the first time.
--
John Hardin KA7OHZ http://www.impsec.org/~jhardin/
jhar...@impsec.org FALaholic #11174 pgpk -a jhar...@impsec.org
key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C AF76 D822 E6E6 B873 2E79
-----------------------------------------------------------------------
...every time I sit down in front of a Windows machine I feel as
if the computer is just a place for the manufacturers to put their
advertising. -- fwadling on Y! SCOX
-----------------------------------------------------------------------
2 days until the 1933rd anniversary of the destruction of Pompeii