OK, first of all, SpamAssassin which comes with Directadmin does not any differ from that one, which you (or anybody else) would install on a server without DA with yum/rpm/apt-get/aptitude/portinstall/pkg_add. Thus you should deal with SA as if you had not installed Directadmin. And as soon as you wish to get closer with SpamAssassin (at least I presume that you wish it), you really should read documentation and manual.
How can we practically check if bayes located in root directory is used by any other user? How can we practically check if the bayes get updated? Here comes the manual to help:
--dump option
Display the contents of the Bayes database. Without an option or with the all option, all magic tokens and data tokens will be displayed. magic will only display magic tokens, and data will only display the data tokens.
So with that command we can at least check if root Bayes database get updated if you teach SpamAssassin from regular (general, or not-root) user.
Note, SpamAssassin can be learned by two ways: automatically and manually. Check your /etc/mail/spamassassin/local.cf (if it exists of course). I've got there
OK, there is a brilliant parameter as
Which can be used with
sa-learn
sa-update
spamassassin
And if you run sa-learn with -D you might see some useful details:
Code:
sa-learn --ham /home/username/imap/domain.com/alex/Maildir/cur/ -D 2>&1 | less
e.g.
Code:
Dec 21 00:58:35.778 [5683] dbg: bayes: tie-ing to DB file R/O /etc/mail/spamassassin/bayes-shared/bayes_toks
Dec 21 00:58:35.778 [5683] dbg: bayes: tie-ing to DB file R/O /etc/mail/spamassassin/bayes-shared/bayes_seen
Here you can see what Bayes Database is used.
And if you run spamassassin in test mode with -D you also can see useful details, about what exact Database is used. Anyway if you try to make spamassassin to use Bayes Database located in /root/.spamassassin, regular user won't be able to access it, while /root/ directory is chmod
ed to 700 or 710. But there is a way out, and here we should read this
http://spamassassin.apache.org/full/3.3.x/doc/Mail_SpamAssassin_Conf.html#learning_options and this
http://spamassassin.apache.org/full/3.3.x/doc/Mail_SpamAssassin_Conf.html#administrator_settings
bayes_path /path/filename (default: ~/.spamassassin/bayes)
This is the directory and filename for Bayes databases. Several databases will be created, with this as the base directory and filename, with _toks, _seen, etc. appended to the base. The default setting results in files called ~/.spamassassin/bayes_seen, ~/.spamassassin/bayes_toks, etc.
By default, each user has their own in their ~/.spamassassin directory with mode 0700/0600. For system-wide SpamAssassin use, you may want to reduce disk space usage by sharing this across all users. However, Bayes appears to be more effective with individual user databases.
bayes_file_mode (default: 0700)
The file mode bits used for the Bayesian filtering database files.
Make sure you specify this using the 'x' mode bits set, as it may also be used to create directories. However, if a file is created, the resulting file will not have any execute bits set (the umask is set to 111). The argument is a string of octal digits, it is converted to a numeric value internally.
I guess, it should be now clear, as I don't even have anything to add.
As you probably saw, my Bayes Database is located in /etc/mail/spamassassin/bayes-shared/ and anybody can read it and write there if it's needed. Of course there is a way to store Bayes Database in MySQL table, but if you want details, please Google it. As Directadmin has very little to do with SA.
p.s. I hope, it's now clear, why I gave you the examples in previous posts, and why I wanted you to read docs. And I hope, you'll read the docs.