spamassassin not correctly configured

Berbox

Well-Known Member
Apr 4, 2005
55
0
156
Belgium
Today i noticed that on all our servers there was no rule active to add the word "SPAM" to the subject.
I added the line "rewrite_header Subject ***SPAM***" to the global configuration file /etc/mail/spamassassin/local.cf and restarted spamassassin.

Spamassassin was working correct now only when I enabled the function to delete the mails immediately with "SPAM" in the subject with the link under the menu spamassassin in Cpanel the following filter rule was added.
Adding filter rule to discard messages with subject was added.
$header_subject: contains ""​

Does this delete all emails with a subject?
When I pushed a second time on the option to delete the SPAM emails the correct rule "$header_subject: contains "SPAM"" was added and also a user.cf file was made in the user map.

I think there is something wrong with the script that creates the filter rule.
Also I have to notice that when I added the subject rule to the global configuration file this was not shown in the users spamassassin configuration in Cpanel. Why this is not adapted?

Can somebody confirm this?
 

mctDarren

Well-Known Member
Jan 6, 2004
665
4
168
New Jersey
cPanel Access Level
Root Administrator
Edit: Oh, misunderstood post first time. Might have just been a hiccup the first time around when you added the rule. Is it working for you now?

As for the other problem, try:
Code:
rewrite_subject [***SPAM***]
 
Last edited:

Berbox

Well-Known Member
Apr 4, 2005
55
0
156
Belgium
Hello Webtiva,

This does not solve the problem. The only thing I adapt manually is the global configuration file. The other entries are made by Cpanel in the menu "Mail" >> "Spamassassin".