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!

SOLVED Block email from a domain in cPanel?

Discussion in 'E-mail Discussion' started by sunilsaini, Oct 31, 2017.

  1. sunilsaini

    sunilsaini Member

    Joined:
    Jul 31, 2017
    Messages:
    11
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    jaipur
    cPanel Access Level:
    Root Administrator
    hello

    I need to block a domain because I don't need email form a domain please help how can I block a certain domain in cpanel
     
  2. Muhammed Fasal

    Muhammed Fasal Active Member

    Joined:
    Aug 9, 2017
    Messages:
    39
    Likes Received:
    3
    Trophy Points:
    8
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hi,

    If you need to block emails from a certain domain name, you can place this domain under blacklist_from in ApacheSpamAssassin.

    Once you have logged in your cPanel account, click on Apache SpamAssassin in Email section.

    1. You can block specific email address, for example, email@exampleA.com . This way all emails sent from email@exampleA.com would be blocked but emails sent from anotherEmail@exampleA.com would still reach your inbox.
    2. You can also use a pattern to block all emails coming from a specific domain name. In this all email addresses that ends in @exampleB.com would be blocked including email@exampleB.com and anotherEmail@exampleB.com .
    3. When you have blocked all unwanted addresses click Save at the bottom of the page to save your changes.
    You can check below doc for more. Let me know if that helps

    Apache SpamAssassin - Documentation - cPanel Documentation
     

    Attached Files:

    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. sunilsaini

    sunilsaini Member

    Joined:
    Jul 31, 2017
    Messages:
    11
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    jaipur
    cPanel Access Level:
    Root Administrator
    Hi

    I add a specific domain under blacklist_from in Apache SpamAssassin. I still have Emails from that domain.
    But I don't no do I need to Enable Apache SpamAssassin first or not. Please tell me do I have to Enable Apache SpamAssassin.
     
  5. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. sunilsaini

    sunilsaini Member

    Joined:
    Jul 31, 2017
    Messages:
    11
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    jaipur
    cPanel Access Level:
    Root Administrator
    Hi

    I create Email filter to stop emails from @example.com. But its not working.
    example.com sending me email from different different ID like abc@example.com, xyz@example.com, 123@example.com.
    Please check attached file how I'm using filter.
     

    Attached Files:

  7. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

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

    Did you create that filter as a global email filter? If so, try changing "ends" to "contains" to see if that helps.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. sunilsaini

    sunilsaini Member

    Joined:
    Jul 31, 2017
    Messages:
    11
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    jaipur
    cPanel Access Level:
    Root Administrator
    Hi,

    Yes I create Global Email Filter. And now filter is working.
    Thank you for the help.:)
     
    cPanelMichael likes this.
  9. Hdraye

    Hdraye Registered

    Joined:
    Aug 13, 2018
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Saudi Arabia
    cPanel Access Level:
    Website Owner
    Hi
    Will this prevent spammers from using this domain to send emails using malwares etc?
     
  10. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello @Hdraye,

    No, email filters configured in cPanel are intended to filter incoming email. Can you provide some more information about the specific scenario you are attempting to address?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
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