I have a new server where I installed Spamassassin. Next, I took a
maildir with a lot of spam and learned the filter:

sa-learn --spam --showdots /path/to/maildir

As I understand it, this creates a bayes database in my home directory
under .spamassassin

Now, I added the line

bayes_path /path/to/.spamassassin

in /etc/mail/spamassassin/local.cf

and restarted the spamd:

/etc/init.d/spamd restart

Burt then, I get the error:

[3936] info: config: SpamAssassin failed to parse line,
"/path/to/.spamassassin" is not valid for "bayes_path", skipping:
bayes_path /path/to/.spamassassin

So, there is something wrong and as I see it, the training has no effect
on SA, to be honest, it recognizes only the half of the spam ...

Thanks for any hints,