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!

Blocking Chinese Spam Emails

Discussion in 'E-mail Discussion' started by AndyD_OHD, Oct 20, 2013.

  1. AndyD_OHD

    AndyD_OHD Member

    Joined:
    Oct 18, 2007
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    51
    Hi,
    I am new to this world of WHM and would like to increase my knowledge of such aspects. I have a client on my hosting account who seems to be getting hundreds of emails from a number of different domains but all share the fact that they have oriental characters in the subject line and email content. The companies apparently sending the emails have a number of different TLDs ranging from .net to .com. I wondered if there was a way using spamassassin, or other means, to block the senders of the emails. I would be reluctant to block yahoo emails as some of my client's clients may use yahoo email addresses. I really would appreciate any advice on setting up some system of blocking please.

    Thanks
    Andy
     
  2. kernow

    kernow Well-Known Member

    Joined:
    Jul 23, 2004
    Messages:
    920
    Likes Received:
    13
    Trophy Points:
    168
    cPanel Access Level:
    Root Administrator
    If blocking the IPs is not practical, you could try the account level filtering in cpanel>>>mail. Set up a new filter and copy/paste the oriental characters into the "contains" box. This may or may not work as I have never tried it and am unsure whether the chinese characters could be read.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. AndyD_OHD

    AndyD_OHD Member

    Joined:
    Oct 18, 2007
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    51
    The company administering my WHM said that blocking ip address is not a good idea and offered to block emails based upon charset. So I have gone along with that at the moment and will wait to see what happens. But thanks for your reply.
     
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,749
    Likes Received:
    1,884
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello :)

    I am happy to hear your server administrator was able to provide you with a resolution. Thank you for sharing the solution with us.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. Bogie

    Bogie Registered

    Joined:
    May 6, 2014
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    I ran across this piece of regex that seems to work - (so far): \P{Cn}

    Since I'm not very good at regex, I have the offending emails redirected to another account until I feel confident that it solves this problem without creating another.
     
  6. shenzy

    shenzy Well-Known Member

    Joined:
    Apr 27, 2008
    Messages:
    67
    Likes Received:
    1
    Trophy Points:
    58
    Location:
    Chile
    cPanel Access Level:
    Root Administrator
    For similar case I use personalizated filters on etc/cpanel_exim_system_filter
    Example: I need filter all emails that contains the phrase: "viagra pills" or in any header contains the domain "viagra-china.cn" or "china-viagra.cn"
    The filter is:
    If you want to keep track of messages filtered:


     
    #6 shenzy, May 6, 2014
    Last edited: May 6, 2014
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