I followed some instructions I found to Blacklist by domain name in Exim config. Here is what I did:
I added
domainlist exim_blacklist = lsearch;/etc/eximblacklist
And added
reject_domains:
driver = redirect
# RBL Blacklist incoming hosts
domains = +exim_blacklist
allow_fail
data = :fail:Connection rejected: SPAM source $domain is manually blacklisted
I created a file called /etc/eximblacklist with the contents of:
*@*.xyz
*@*.top
*@*.space
This is where about 99% of the spam we are receiving comes from and just started using dspam so training on that has been pretty slow, but it allows us to have a portal in which every email user can release their own messages from the quarantine with the SMCP plugin instead of calling us every time they can't find an email.
So by doing this it seems that the first domain is being blacklisted just fine, but the next 2 in the list are not. I have also tried some other instructions for doing the same thing with Exim ACL but that completely broke all email. If anyone has done this before, I could really use some input as to why it doesn't seem to be reading the lines after the first or if there is a better way of doing this in exim.
This also looks good:
Exim Blacklist -> *domain doesn't work
but I don't see where I can add custom filters in the WHM. The only thing I can do is change the system filter, not add another filter.
I added
domainlist exim_blacklist = lsearch;/etc/eximblacklist
And added
reject_domains:
driver = redirect
# RBL Blacklist incoming hosts
domains = +exim_blacklist
allow_fail
data = :fail:Connection rejected: SPAM source $domain is manually blacklisted
I created a file called /etc/eximblacklist with the contents of:
*@*.xyz
*@*.top
*@*.space
This is where about 99% of the spam we are receiving comes from and just started using dspam so training on that has been pretty slow, but it allows us to have a portal in which every email user can release their own messages from the quarantine with the SMCP plugin instead of calling us every time they can't find an email.
So by doing this it seems that the first domain is being blacklisted just fine, but the next 2 in the list are not. I have also tried some other instructions for doing the same thing with Exim ACL but that completely broke all email. If anyone has done this before, I could really use some input as to why it doesn't seem to be reading the lines after the first or if there is a better way of doing this in exim.
This also looks good:
Exim Blacklist -> *domain doesn't work
but I don't see where I can add custom filters in the WHM. The only thing I can do is change the system filter, not add another filter.
Last edited: