[Solved] SpamAssassin Rules updates?

How often are the SpamAssassin rules updated? Or does one have to do it manually from time to time? Thanks!

SpamAssassin rules are updated according to your users spam folders I believe. I believe it is done via cron, but I am not in front of my server to confirm. Could someone else assist?

@murgero Thanks. I am talking about the non-individual, general sa-rule-updates (see: https://wiki.apache.org/spamassassin/RuleUpdates or http://search.cpan.org/dist/Mail-SpamAssassin-3.4.0/sa-update.raw). Sorry if i did not make that clear.

Ah fair enough! Those might just be updated via MIAB updater. @JoshData Could you confirm?

I don’t really know. You’d have to check https://github.com/mail-in-a-box/mailinabox/blob/master/setup/spamassassin.sh and then see what the Ubuntu spamassassin package does.

I do not think SA has a general rule’s list. it just learns as you move stuff into spam:

(See spamassassin.sh in MIAB:)
# To mark mail as spam or ham, just drag it in or out of the Spam folder. We’ll
# use the Dovecot antispam plugin to detect the message move operation and execute
# a shell script that invokes learning.

@murgero @JoshData It seems so in MiaB itself that there is no rule update implemented. But am I right that SA in general does have such updates? This is maybe something that could be implemented in MiaB and would be a huge step forward in fighting spam? Although i don’t know anything about the workload to implement such an update possibility. See Ubuntu SA-Rule-Updates: http://manpages.ubuntu.com/manpages/xenial/man1/sa-update.1p.html

@JoshData Is such an update (SA-Rule-Updates) possible and feasible to implement within future releases of MiaB? This could be a huge step forward in regards to fight in the dynamic arena of spam.

Yes. But I think it’s supposed to be doing it already. If it’s not, for sure we should do it.

It should already work. Spamassasin installs a script in cron.daily that runs sa-update and recompiles the rules.

It’s here: /etc/cron.daily/spamassassin

Runs the command like so: su - debian-spamd -c "sa-update --gpghomedir /var/lib/spamassassin/sa-update-keys"