Question
How can I suspend email for an entire domain?
Answer
- Access the server's command line as the 'root' user via SSH or "Terminal" in WHM.
Run the following commands:
# touch /etc/blockeddomains
# echo "$domain.tld" >> /etc/blockeddomains
Note:
domain.tldmust be replaced by the domain to block.- Log into WHM as the
rootuser. - Navigate to Home / Service Configuration / Exim Configuration Editor
- Click the Advanced Editor tab.
- Scroll down to the "Add additional configuration setting" button, and click it.
- Select "domainlist blocked_outgoing" from the newly created dropdown menu.
Enter the following in the textbox to the right of "domainlist blocked_outgoing."
CONFIG_TEXT: lsearch;/etc/blockeddomains
- Scroll down to "custom_begin_outgoing_notsmtp_checkall" in Section:ACLs
Add the following to the "custom_begin_outgoing_notsmtp_checkall" textbox:
CONFIG_TEXT: discard
sender_domains = +blocked_domains
message = Message from $sender_address_domain is manually blacklisted.- Scroll to the bottom of the page.
- Click the "Save" button.
Comments
0 comments
Article is closed for comments.