This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to block a specifick mail?

A user of mine is getting these spam mails a couple times a day.

I normally just block the sender or the words in it.
Now the tricky part is that the mail is in html (i cant block them cause half the users write mails in html)

And the words are always between tags
example:

Am
Xa
Va
Ce
Vi
Le
Ul
Me
Ci
Pr


Is there a way to remove the tags trough expresion to block those??

Words are Valium/viagra etc...

Thanks in advance


This thread was automatically locked due to age.
  • SapmAssassin has tests to try and spot things like that, you could try lowering the Pass score to see if you can start catching these emails without causing legit emails to get tagged as well. 

    If that catches the target emails, but also catches some legit ones, you could up the score assigned to the rules it is hitting on, (check the x-spam-report: header). ie. If the target spam is hitting on the HTML_OBFUSCATE_20_30 rule, but legit ones are not, you could up the score to maybe 1.5 to help weed it out. Add a line like

    score HTML_OBFUSCATE_20_30  1.5

    to the file /etc/mail/spamassassin/local.cf

    Yes, this is a manual change that will void support.