1
Content Filter rule based on text string in a hyperlink not working.
Question asked by Melvyn Duckmanton - 6/16/2022 at 3:06 PM
Unanswered
I want to filter some spam emails that all contain a similar hyperlink. The format of the hyperlink is along the lines of this:
<ahref="h t t p://www.website.com/t/click/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbb">
(Actual characters replaced above by aaa.... etc)
The content of these hyperlinks varies from email to email except for the aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa part which is common to all of the emails so I want to use this part to trigger a filter, but when I set up a simple Content Filter rule in my SmarterMail settings it doesn't work. By experimentation I've found that the rule works fine with any plain text string in the email but won't recognise any of the text string inside the opening and closing < . . . > hyperlink brackets.
Is there a way text contained in a hyperlink can be used as a filter trigger, or am I missing something?

2 Replies

Reply to Thread
0
Zach Sylvester Replied
Employee Post
Hey Melvyn, 

Thanks for reaching out to the community. I would recommend using a global spam filter along with a regular expression[regex] to accomplish this goal. 

Please let me know if this helps. 

Kind Regards, 
Zach Sylvester
Technical Support Specialist
SmarterTools Inc.
(877) 357-6278
www.smartertools.com
0
Melvyn Duckmanton Replied
Just to be clear . . .
I'm using SmarterMail Enterprise 15.7 (provided as part of Doteasy's web hosting service)
 and constructed a rule as follows:
    Settings>Filtering>Content Filtering
    Anywhere in message
    Contains specific words or phrases 
    *aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa* (where aaa...etc represents the relevant string in an html hyperlink)
    Move message

The filter is not triggering.
Is what you are suggesting different?

Regards
Mel

Reply to Thread