On 26/02/2021 10:01, Jenny Hopkins wrote:
Hello, Thanks so much for the responses. I've pasted up everything I know here, including headers: https://pastebin.com/nvZjqEzL
It looks as though I already changed sa-learn to run as root.
Interesting. Your database is in a different place to mine. Mine's in /root/.spamassassin. Also, I'm not using sa-exim but tweaks inside the exim config file. sa-exim website says it hasn't been maintained since 2006 See here: http://marc.merlins.org/linux/exim/sa.html That also says other ways of integrating spamassassin directly into exim. Looking at this https://github.com/docker-mailserver/docker-mailserver/issues/365 I surmise that your spamassassin is running as user spamassassin. I think the alternative is running it as root. Look at sudo ps -Af | grep spamassassin what user is it running as? If it's NOT running as root, then sudo sa-learn will probably not work, because it will update root's database, rather than the spamassasin user's one in /var/lib/spamassasin. If you're going to continue with the non-root user (I'm guessing it's "spamassassin"), then you'll have to adjust your learn script, perhaps to something like sudo su - spamassasin sa-learn ..... or use sa-learn --dbpath SOMEPATH Hmmm.... puzzling Steve