Email filters and sender's display name

rtc35

Registered
Jul 1, 2013
1
0
1
cPanel Access Level
Reseller Owner
Hello,

I've written an account level email filter to stop spam using a regex match, but I'm really trying to match the display name of the sender, not the actual email address, which dynamically changes. I'm getting dozens of emails from iGreatLife, iSlimBody, iTopHealth and so on. I'm not sure if a From rule filters according to address or display name or both, but the spam is still coming.

My regex is here, if it's helpful: i[A-Z]{1}[a-z]{2,10}[A-Z]{1}[a-z]{2,10}.*

Thanks,
Robin
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
Hello :)

Have you considered creating a filter based on the message body? This may be more reliable than creating a filter for the display name of the sender.

Thank you.