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 check below doc for more. Let me know if that helps
- You can block specific email address, for example, [email protected] . This way all emails sent from [email protected] would be blocked but emails sent from [email protected] 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 protected] and [email protected] .
- When you have blocked all unwanted addresses click Save at the bottom of the page to save your changes.
Apache SpamAssassin - Documentation - cPanel Documentation
Hello @Hdraye,Will this prevent spammers from using this domain to send emails using malwares etc?
|Thread starter||Similar threads||Forum||Replies||Date|
|C||Block Emails By Domain Extension||E-mail Discussion||5|
|U||Blocking Outgoing Email to External Domains||E-mail Discussion||1|
|S||Block an email domain using BoxTrapper?||E-mail Discussion||6|
|B||SOLVED How to block one email user from sending to certain domains?||E-mail Discussion||14|
|Block incoming emails from domain||E-mail Discussion||15|