User account spam header and body tests

SYSTEM INFORMATION
OS type and version Ubuntu Linux 22.04.5
Usermin version 2.102
Virtualmin version 7.20.2 Pro
Theme version 21.20.7
Apache version 2.4.52
Package updates 49 package updates are available

Virtualmin --> Mail Options --> SpamAssassin Configuration --> Header and Body Tests

Has any one got this to work, I have tried but they don’t seem to work.

Thanks

Yep I got it to work, most are in the webmin section. What are you trying to do?

not it webmin, in virtualmin. it is a different part of the process.

Yeah but it should still work, but it would only effect that domain. What rule have you tried that is not working. (so I can test)

I actually do have one rule

can’t remember doing it, I must of has alot of emails from that domain.

just did a test from my gmail account with this rule.

image

The test I did was for the word claudia in the message body, it did not work.

I want to user per user filtering as this is where I get most of my spam.

You are using spamassassin not spamc right? I use spamc so if I put rules there they are ignored.
Virtualmin > Email Settings > Spam and Virus Scanning

Good call I forgot about that. My current settings are as below so I don’t think it is this.

post the rule, I’ll replicate it. I don’t use spamc
per user would prob be done is usermin. Not sure how you would do that in virtualmin.

thanks. I only used simple

trying use a better testname, 1 did not work for me, this worked though.

Test name will also error with any spaces. Does it still work with no description?
like:
APECOIN_BODY

I see it just puts no description available.

These are not predefined spam assasin tests, but is having the test names lowercase the issue.

I will see if lack of description causes an issue.

@stefan1959 example worked with lower case and just added :no decription available.

quote from :

https://spamassassin.apache.org/full/3.1.x/doc/Mail_SpamAssassin_Conf.html

Test names must not start with a number, and must contain only alphanumerics and underscores. It is suggested that lower-case characters not be used, and names have a length of no more than 22 characters, as an informal convention. Dashes are not allowed.

Spamassassin docs are too complex. I get lost in them.

When i first started setting mine up I read somewhere that if it didn’t like the way a rule was formatted it would skip that rule and continue skipping rules and eventually start reading rules again. I figure since they use ALL_CAPS and underscores so will I. I just copy/paste the rule name as the description. My rules work. I have a lot of rules and weight a lot of their rules.

toward the bottom under TEMPLATE TAGS
is a list of X-Spam headers you can add to your header

1 Like

It could be the test name, thanks. I will try tommorow.

There should be a validator on the test name field in virtualmin.

I was using test names starting with a number.

I have submitted a couple of GitHub issues for this

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.