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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

SOLVED Block email from a domain in cPanel?

Discussion in 'E-mail Discussions' 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:
    40
    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:

  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    41,516
    Likes Received:
    1,616
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
  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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    41,516
    Likes Received:
    1,616
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
  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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    41,516
    Likes Received:
    1,616
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
  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.
Loading...

Share This Page