I don't know why those data don't change when I have set the autolearn on. But I do see some of the messages being autolearn=spam and ham in the headers.
I see those data change when I use sa-learn --spam/ham [spamfolder]
Is there something I need to set in the local.cf?
Sounds like you're running sa-learn as a different user than your mail gets processed as.
Remember.. SA uses the bayes DB of the user that executes SA, not the recipient of the email. Also, if it finds itself running as root, it will dump back to "nobody" for security reasons.
Check around using locate or find and see if you can find another bayes_toks file on your system.
