The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Email filters and sender's display name

Discussion in 'E-mail Discussions' started by rtc35, Jul 2, 2013.

  1. rtc35

    rtc35 Registered

    Joined:
    Jul 1, 2013
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    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
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page