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.

Global Email Filtering

Discussion in 'E-mail Discussions' started by jdw_id, Jun 25, 2015.

  1. jdw_id

    jdw_id Member

    Joined:
    Apr 28, 2011
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Hi All

    One of my account got spam, I try use Account Level Filtering in CPanel..
    It works succefully...

    But now, spammer send same spam to other account / domain on that server.

    Rather than use Account Level Filtering on every account, i looking for same feature on whm..
    But i can't find those on whm (i have root access)...

    How to setup Global Spam Filtering ?

    Thank you
     
  2. keat63

    keat63 Well-Known Member

    Joined:
    Nov 20, 2014
    Messages:
    765
    Likes Received:
    20
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    you could create your own exim blacklist, but this involves adding domain names to a list manually.

    Create a file named /etc/eximblacklist and add the entry "163.com" (without quotes). That is, add the domains you need to blacklist one per line.

    Now go to WHM >> Exim configuration editor >> Advanced Editor.

    Add the below lines in the first section just below the line "#!!# cPanel Exim 4 Config"

    domainlist exim_blacklist = lsearch;/etc/eximblacklist

    Now add inside the section under "ROUTERS CONFIGURATION "

    reject_domains:

    driver = redirect
    # RBL Blacklist incoming hosts
    domains = +exim_blacklist
    allow_fail
    data = :fail: Connection rejected: SPAM source $domain is manually blacklisted.

    Save the configuration and see the exim error log. You can see the domain blocked.


    Courtesy of Frank
     
Loading...

Share This Page