from Reven@lemmy.world to selfhosted@lemmy.world on 21 Jan 22:42
https://lemmy.world/post/24559953
Hi,
I’m trying and failing to get spamassassin to load user prefs from a mysql database. I’m using spamass-milter and I can’t find any way in the docs to send anything. spamass fails to parse the recipient as the user and just uses it’s running user in it’s call to spamd. The database is properly configured and I can connect and set settings from roundcube. The sql config is added to local.cf.
I know that you can use spamd as a pipe, and then you can pass more variables, but I can’t figure out the correct config for this setup.
This is what I have in /etc/default/spamd:
OPTIONS=“-Q -x --max-children 5 -D sql,bayes -H /etc/mail/spamassassin/”
I’ve also tried multiple combinations with the flags -q, without -x…
And this is what I have in /etc/default/spamass-milter
OPTIONS=“-u spamass-milter -x -i 127.0.0.1”
Where again I’ve tried without -u, with -e domain.com
to explicitly set the domain.
If anyone has any advice or can point me to a recent tutorial for Ubuntu 24.04, I would be really grateful!
threaded - newest
Logs
Spamassassin is useless these days, you better be using rspamd.
workaround.org/…/catching-spam-with-rspamd/
Yup, this is the last time I muck around with spamassassin unless the project gets a magical revival.
Just don’t even invite this mess to begin with. Let pros handle it.
This is the SelfHosted community.
😂
I think I got it working. I’ve got this in /etc/default/spamd:
and this in /etc/default/spamass-milter:
And it definitely reads user prefs from the database because I can change the ‘required_hits’ to 6.7 for a given user and I see this in the logs:
I don’t know how many different combinations of config flags I’ve tried, but these seem to do the job.