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!

Block all inbound emails except specific list?

Discussion in 'E-mail Discussion' started by z3d3m0n, Feb 25, 2019.

Tags:
  1. z3d3m0n

    z3d3m0n Active Member

    Joined:
    Feb 8, 2016
    Messages:
    31
    Likes Received:
    1
    Trophy Points:
    8
    Location:
    Prague
    cPanel Access Level:
    Root Administrator
    Hello Community,

    i run a small commercial email server and i don't want to deal with spam , is there a way how to block incoming domains, emails except for a certain list?

    thx
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    47,299
    Likes Received:
    2,155
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello @z3d3m0n,

    The following thread offers some user-submitted examples that you may find helpful:

    Block incoming emails from domain

    You'd simply need to adjust the filter rule to block email from a domain name that's NOT from a list of domain names.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    z3d3m0n likes this.
  3. keat63

    keat63 Well-Known Member

    Joined:
    Nov 20, 2014
    Messages:
    1,265
    Likes Received:
    86
    Trophy Points:
    28
    cPanel Access Level:
    Root Administrator
    If you want to do this at server level, then you may have to look at something like CSF mailscanner.
    Also, there is an exim mod to block domains, but i found it tempremental.
    Search for exim_blacklist, it will appear somewhere.

    Alterntively, if you want to do this at domain level then a global email filter in your cpanel will do this.
    Although compiling the rule could be tedious.
     
    cPanelMichael and z3d3m0n like this.
  4. z3d3m0n

    z3d3m0n Active Member

    Joined:
    Feb 8, 2016
    Messages:
    31
    Likes Received:
    1
    Trophy Points:
    8
    Location:
    Prague
    cPanel Access Level:
    Root Administrator
    thank you for advice
     
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