2026-09-04 12:31:11 -05:00
|
|
|
# Email Domains Block/Allow Lists
|
2026-08-05 13:20:24 -05:00
|
|
|
|
2026-09-04 12:31:11 -05:00
|
|
|
Domain filtering policies for email servers.
|
2026-08-05 13:20:24 -05:00
|
|
|
|
|
|
|
|
## Overview
|
2026-09-04 12:31:11 -05:00
|
|
|
|
|
|
|
|
These lists are used for SMTP-level domain filtering on email servers like Postfix, Exim, or Microsoft Exchange.
|
|
|
|
|
|
|
|
|
|
## Files
|
|
|
|
|
|
|
|
|
|
| File | Description |
|
|
|
|
|
|------|-------------|
|
|
|
|
|
| `blocked_domains.md` | Domains to reject completely |
|
|
|
|
|
| `email_domain_allow_block_list.md` | Comprehensive allow/block rules |
|
2026-08-05 13:20:24 -05:00
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
2026-09-04 12:31:11 -05:00
|
|
|
### Postfix Example
|
2026-08-05 13:20:24 -05:00
|
|
|
|
2026-09-04 12:31:11 -05:00
|
|
|
```postfix
|
|
|
|
|
# /etc/postfix/access
|
|
|
|
|
blocked-domain.com REJECT
|
|
|
|
|
spam-domain.org REJECT
|
2026-08-05 13:20:24 -05:00
|
|
|
|
2026-09-04 12:31:11 -05:00
|
|
|
# Hash and load
|
|
|
|
|
postmap /etc/postfix/access
|
|
|
|
|
postfix reload
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### Exim Example
|
|
|
|
|
|
|
|
|
|
```exim
|
|
|
|
|
# /etc/exim4/conf.d/acl/acl_check_rcpt
|
|
|
|
|
deny
|
|
|
|
|
domains = +blocked_domains
|
|
|
|
|
message = Domain blocked
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### Microsoft Exchange
|
|
|
|
|
|
|
|
|
|
Use Transport Rules in Exchange Admin Center:
|
|
|
|
|
- Condition: Sender domain matches blocked list
|
|
|
|
|
- Action: Reject message
|
|
|
|
|
|
|
|
|
|
## Maintenance
|
|
|
|
|
|
|
|
|
|
Update lists by pulling from this repository and refreshing your server's access database.
|
|
|
|
|
|
|
|
|
|
## Categories
|
|
|
|
|
|
|
|
|
|
- Spam senders
|
|
|
|
|
- Known malicious domains
|
|
|
|
|
- Disposable email providers
|
|
|
|
|
- Competitor/whois domains
|