Spam filter no longer marking messages

evisions

Well-Known Member
Jan 25, 2004
68
0
156
I have had a couple of clients report today the SA is no longer changing subject lines. Has something changed that would effect that?

WHM 9.4.0 cPanel 9.4.1-S65
 

rpmws

Well-Known Member
Aug 14, 2001
1,787
10
318
back woods of NC, USA
evisions said:
I have had a couple of clients report today the SA is no longer changing subject lines. Has something changed that would effect that?

WHM 9.4.0 cPanel 9.4.1-S65

yep busted. the new sa 3.0.0 uses different vars for the configs. I been fixing mine one at a time.. Nick we need you man!!!
 

pubwvj

Active Member
Mar 15, 2004
39
0
156
In the Mountains of Vermont
Eek! Me too!

I was just about to post this same thing. SpamAssassin is no longer running at all on incoming emails. What is the fix?
 

sparek-3

Well-Known Member
Aug 10, 2002
2,148
265
388
cPanel Access Level
Root Administrator
I made a simple perl script to find all of the user_prefs files for spamassassin users on the server and replace the subject_tag with rewrite_header Subject. Here is the code:

Code:
#!/usr/bin/perl

@files = `find /home/*/.spamassassin -name user_prefs -print`;

foreach(@files) {
        chomp($_);
        system("perl -pi -e 's/subject_tag/rewrite_header Subject/g' $_");

}
Just save that to a file on the server, chmod +x and run the script.
 

Snover

Active Member
Sep 29, 2003
30
0
156
This fix is not working for me. Also, virus messages are no longer rewritten with [Virus] either. This is causing a severe problem in the handling of spam messages on my server.
 

pubwvj

Active Member
Mar 15, 2004
39
0
156
In the Mountains of Vermont
At our web host they've turned off the SpamAssassin auto-update because of this problem. It was too much of a hassle that every time the auto-update ran it turned off SpamAssassin and they had to go through and manually turn it back on. So now we have SpamAssassin 3 running fine - just no auto-updates until this gets straightened out. They feill this may be the best solution for a while.

The alternative I see is a cron job that turns it back on periodically or ideally is triggered by the auto-update. Perhaps it could be triggered by detecting that SpamAssassin is no longer marking messages - e.g., ever hour it would do a test message, see if SpamAssin marks it and if not then turn on SpamAssassin.