Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Denying False Sender Domain Emails

Discussion in 'E-mail Discussion' started by shw, May 9, 2007.

  1. shw

    shw Active Member

    Joined:
    Oct 24, 2006
    Messages:
    25
    Likes Received:
    0
    Trophy Points:
    151
    I followed the following code regarding this question:

    deny message = Faked Yahoo, so you must be spam.
    log_message = Fake Yahoo
    senders = *@yahoo.com
    condition = ${if match {$sender_host_name}{\Nyahoo.com$\N}{no}{yes}}

    I am having quite a bit of spam coming from shaw.ca. I would like to implement the above code for this domain but the problem is the hostname could have shaw.ca or shawcable.net. How would I state in the condition that it is allowed if either of those domains are in the actualy host? Would it be:

    \Nshawcable.net|shaw.ca$\N

    I know that MSN can be \N(hotmail|msn).com$\N but that is without changing the .xxx.

    The only other thing I can think of would be \N(shawcable.net|shaw.ca)$\N

    Thanks for any assistance.
     
  2. sparek-3

    sparek-3 Well-Known Member

    Joined:
    Aug 10, 2002
    Messages:
    1,675
    Likes Received:
    84
    Trophy Points:
    328
    cPanel Access Level:
    Root Administrator
    Exim conditionals are always fun. I'm not sure if this is right or not, hopefully there is someone else here that understands exim conditions better.

    Code:
    ${if or \
       { \
          { match {$sender_host_name}{\Nshawcable.net$\N}{no}{yes}} \
       } \
       { \
          { match {$sender_host_name}{\Nshaw.ca$\N}{no}{yes}} \
       } \
       {no}{yes} \
    }
     
  3. shw

    shw Active Member

    Joined:
    Oct 24, 2006
    Messages:
    25
    Likes Received:
    0
    Trophy Points:
    151
    Thanks for the response. I will try and test this out but it's hard for me to do an actual test unless this person sends another email (I do not know them...client's client :) ). If nobody chimes in I will just make this change and monitor the Exim logs.

    Can anyone else confirm the above code for this subject?

    Thanks again
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice