Dears,
Is it any way to block receiving emails from specific domain to any mailing list on the server?
Is it any way to block receiving emails from specific domain to any mailing list on the server?
I performed something similar two weeks ago.
There are instructions out there, but the ones I found were not particularly idiot proof, so i wrote these for my own reference just in case I have to do it again.
Creating an Exim Blacklist
First create your blacklist.
Inside the etc folder create a new file called “exim_blacklist”
On a separate line, add the domains you wish to block. (one domain per line)
This could be achieved by creating a standard text file on your computer, ftp it to the etc folder then remove the .txt extension.
Go to WHM >> EXIM CONFIGURATION MANAGER >>
Backup your current exim config before you start. Any errors in here could render EXIM useless.
Did you make that backup ?.. No, then do it now.
Next choose the Advanced Editor tab, and scroll down to the Add Additional Configuration Settings button. (about 1/3rd of the way down the page)
Click the + sign to add another entry, and choose “domainlist [LISTNAME]” from the drop down.
Over write [LISTNAME], with exim_blacklist and in the box opposite add: lsearch;/etc/exim_blacklist
It should say: domainlist exim_blacklist = lsearch;/etc/exim_blacklist
Click the green tick
In the Routers Configuration section you add the following 6 lines:
reject_domains:
driver = redirect
# RBL Blacklist incoming hosts
domains = +exim_blacklist
allow_fail
data = :fail: Connection rejected: SPAM source $domain is manually blacklisted
I added this to the “ROUTEREND” box.
Click the green tick
Save your config.
Restart Exim.
If you need to blacklist more domains, edit the exim_blacklist file.
Thread starter | Similar threads | Forum | Replies | Date |
---|---|---|---|---|
![]() |
how to block {RANGE IPs} in [Exim Configuration Manager] ?? | 4 | ||
![]() |
Block email by Subject - Globally | 2 | ||
![]() |
How block IP server to delivery mail in WHM | 5 | ||
M | SOLVED Block Receiving E-Mail Address | 3 | ||
D | How to block default mail account from sending or receiving mail? | 4 |