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.

Blocking Chinese Spam Emails

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

  1. AndyD_OHD

    AndyD_OHD Member

    Joined:
    Oct 18, 2007
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    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:
    867
    Likes Received:
    9
    Trophy Points:
    18
    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.
     
  3. AndyD_OHD

    AndyD_OHD Member

    Joined:
    Oct 18, 2007
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  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:
    66
    Likes Received:
    1
    Trophy Points:
    8
    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