You can block emails from specific domains using domain filtering tools in your hosting control panel. This feature allows you to reject all incoming messages from unwanted domains before they reach your inbox, which is particularly useful for blocking persistent spam sources or malicious senders. The system checks the sender's domain against your blocked list and automatically rejects matching emails at the server level.
Understanding Domain Filtering
Domain filtering is a powerful email security feature that blocks all messages originating from specified domains. When you add a domain to your blocked list, your mail server automatically rejects any email where the sender's address matches that domain. This happens before any other filtering rules or settings are applied, making it an effective first line of defense against unwanted email.
This feature works at the server level, meaning blocked emails never reach your inbox or consume storage space. The sender typically receives a bounce notification indicating their message was rejected.
How to Block a Domain
To block emails from a specific domain, follow these simple steps:
- Log into your hosting control panel and navigate to the email filtering section
- Locate the Blocked Domains text box
- Enter the domain name you want to block (for example, spammer.com)
- If blocking multiple domains, enter each domain on a separate line
- Click Save to activate the filter
The changes take effect immediately, and your server will begin rejecting emails from the blocked domains right away.
Using Wildcard Characters
You can block all subdomains of a given domain by using the asterisk (*) wildcard character. Simply prefix the domain name with an asterisk to create a broader filter.
For example, if you enter *.example.com in your blocked domains list, your server will reject emails from:
- mail.example.com
- support.example.com
- sales.example.com
- Any other subdomain under example.com
This wildcard approach is useful when spammers rotate through multiple subdomains under the same parent domain.
Working with International Domain Names
If you need to block an Internationalized Domain Name (IDN) that contains non-ASCII characters, you can enter it directly into the blocked domains field. The system automatically converts IDNs into Punycode format for processing.
Punycode is a special encoding method that represents Unicode characters using only ASCII characters. For example, a domain written in Korean characters would be converted to a format beginning with xn-- followed by ASCII characters. You can view domains in their ASCII (Punycode) format by selecting the Show domains as ASCII checkbox in your control panel.
Important Considerations
Before blocking domains, keep these important points in mind:
- Priority processing: Domain filtering happens before other email filters and settings, so blocked domains bypass all other rules
- Permanent blocking: Once blocked, no legitimate emails from that domain can reach you unless you remove it from the list
- Spoofing limitations: This filter blocks based on the sender's domain, but sophisticated spammers can sometimes forge sender addresses
- Case sensitivity: Domain names are not case-sensitive, so blocking example.com also blocks EXAMPLE.COM
Common Use Cases
Domain filtering is particularly valuable in several scenarios:
- Blocking known spam domains that send high volumes of junk mail
- Preventing phishing attempts from suspicious domains
- Rejecting marketing emails from persistent senders after unsubscribe attempts fail
- Protecting against targeted harassment from specific domains
- Reducing server load by rejecting unwanted email before processing
Frequently Asked Questions
What happens to emails from blocked domains?
When an email arrives from a blocked domain, your server immediately rejects it during the initial connection. The sender typically receives a bounce message indicating the email was not delivered. The message never enters your mailbox or takes up storage space.
Can I temporarily disable domain blocking without deleting my list?
While most control panels don't have a simple on/off toggle, you can remove all entries from your blocked domains list and save your list elsewhere. When you want to re-enable blocking, simply paste the domains back into the text box. Alternatively, you can contact OBHost support for guidance on temporarily disabling filters.
Will blocking a domain also block its subdomains?
No, blocking example.com only blocks emails from that specific domain. To block all subdomains, you must use the wildcard format *.example.com. This ensures that mail.example.com, support.example.com, and any other subdomain is also blocked.
How many domains can I add to my blocked list?
There is typically no strict limit on the number of domains you can block, but extremely large lists (hundreds or thousands of entries) may impact email processing performance. For most users, blocking dozens of domains causes no performance issues. If you need to block an unusually large number of domains, consider using other filtering methods in combination with domain blocking.
If you need assistance configuring domain filtering or have questions about email security, OBHost's support team is available 24/7. Visit our contact page or email support@obhost.org for help.