Wednesday, May 1, 2024
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 937  / 2 Years ago, thu, june 16, 2022, 4:53:25

I updated my /etc/spamassassin/local.cf spamassassin file to update some score rules. However, even after restarting spamassassin (via service), the new score are not shown in spam emails. In fact, nothing in that file seem to influence how spamassassin work.



I use exim as my MTA but that should not matter. All packages were installed via apt-get and are at the latest version for 14.04.



For example, I have this:



score HTML_MESSAGE 2.0


define in /etc/spamassassin/local.cf. I restarted both exim and spamassassin. spamassassing --lint shows that there are no errors int hat file. Then got yet another spam with this:



0.0 HTML_MESSAGE           BODY: HTML included in message


In the X-Spam-Report field.



I ran spamassassin -D < spam and the order of loading of cfg files seems to be wrong:



Jun  8 13:34:07.300 [21668] dbg: config: read file /etc/spamassassin/local.cf
...
Jun 8 13:34:07.600 [21668] dbg: config: read file /var/lib/spamassassin/3.004000/updates_spamassassin_org/50_scores.cf
...
Jun 8 13:34:07.787 [21668] dbg: config: read file /var/lib/spamassassin/3.004000/updates_spamassassin_org/73_sandbox_manual_scores.cf
Jun 8 13:34:07.788 [21668] dbg: config: fixed relative path: /var/lib/spamassas
sin/3.004000/updates_spamassassin_org/local.cf
...


What is going on?



Well, that was a waste of 100 reputation for a bounty!


More From » configuration

 Answers
2

/var/lib/spamassassin/3.004000/updates_spamassassin_org/50_score.cf is the file one wants to edit to get scores actually reflected.



This is clearly not a clean solution! But it works where nothing else does…


[#24422] Saturday, June 18, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
anoalk

Total Points: 271
Total Questions: 90
Total Answers: 112

Location: Zambia
Member since Wed, Dec 16, 2020
3 Years ago
anoalk questions
Wed, Mar 15, 23, 04:06, 1 Year ago
Fri, Sep 24, 21, 02:59, 3 Years ago
Sat, Mar 5, 22, 02:33, 2 Years ago
Tue, Mar 22, 22, 07:19, 2 Years ago
;