[SOLVED] Spamassassin false positive for local surname.

ArchanfelHUN

Member
Apr 27, 2020
15
0
6
44
Hi!

Spamassassing KAM_SEX_EXPLICIT rule contains many english sexual related words.
One word "horny" is appear in a local (hungarian) surname called "Hornyák"
Coz of this every mail address whos owner called hornyak blocked. For example: hornyak.maria@ or hornyakistvan@

My workaround currently is i created a custom score in spam detection for KAM_SEX_EXPLICIT with score 0. So this check skipped. But of course now all email what contain sexually explicit content not get scored, so this is not a perfect solution.

Any idea how can i solve this somehow better?

Thanks!
Peter
 
Hello,
I believe one way would be to add a custom spamassassin configuration detecting the word and assigning a negative score
Ahh yes, i forgot this :)

I added to the custom.cf this:

header LOCAL_HORNYAK_RULE From=~ /hornyak/i
score LOCAL_HORNYAK_RULE -16

Now the original rule still add 16 score to the email but this add -16 so its a 0 now :)

I wish this could be configured from the webui tho.

Anyway its solved, thx! :)