Skip to main content

Block email from a domain in cPanel?

Comments

9 comments

  • Muhammed Fasal
    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.
      ]
    • You can block specific email address, for example, email@exampleA.com[/EMAIL] . This way all emails sent from email@exampleA.com[/EMAIL] would be blocked but emails sent from anotherEmail@exampleA.com[/EMAIL] would still reach your inbox.
    • 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[/EMAIL] and anotherEmail@exampleB.com[/EMAIL] .
    • 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
    0
  • cPanelMichael
    Hello, The previous post should help. If you are not using SpamAssassin, you can also setup a global email filter to reject messages from the domain name: How to Configure Mail Filters - cPanel Knowledge Base - cPanel Documentation Thank you.
    0
  • sunilsaini
    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.
      ]
    • You can block specific email address, for example, email@exampleA.com[/EMAIL] . This way all emails sent from email@exampleA.com[/EMAIL] would be blocked but emails sent from anotherEmail@exampleA.com[/EMAIL] would still reach your inbox.
    • 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[/EMAIL] and anotherEmail@exampleB.com[/EMAIL] .
    • 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
    0
  • cPanelMichael
    Hello, SpamAssassin must be enabled to have those blacklist entries active. Otherwise, without SpamAssassin, you can reject the messages with an email filter: How to Configure Mail Filters - cPanel Knowledge Base - cPanel Documentation Thank you.
    0
  • sunilsaini
    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.
    0
  • cPanelMichael
    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.
    0
  • sunilsaini
    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.

    Hi, Yes I create Global Email Filter. And now filter is working. Thank you for the help.:)
    0
  • Hdraye
    Hi Will this prevent spammers from using this domain to send emails using malwares etc?
    0
  • cPanelMichael
    Will this prevent spammers from using this domain to send emails using malwares etc?

    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.
    0

Please sign in to leave a comment.