wildcard domain email block not working (WHM)

luisfalcon

Member
Feb 25, 2003
15
0
151
Hello.

If I go to the exim configuration manager / Basic Editor / Access Lists / Blocked Domains and enter a wildcard domain (for example *.domain.com) it does not filter that domain at all. Only when I enter "domain.com" it works but then if the email has subdomains it doesn't work either.
I have version 86.0.16
Any clue?
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,301
363
Houston
Per the documnetation here: Filter Incoming Emails by Domain | cPanel & WHM Documentation and the interface it does indeed block these

This interface allows you to manage a list of domains that may not send mail to your server. The system will reject any messages that it receives whose “From” address matches one of this list’s domains.

You can reject all subdomains of a given domain by prefixing the name with an asterisk (*). For example, “*.example.com” will cause this server to reject all messages sent from any subdomain of “example.com”.

This interface accepts IDNs.
I've done extensive testing for this in another thread A better filter for spam domain names

What is noted in the exim main log for these transactions where you're noting they're not being rejected? You can find the exim logs at /var/log/exim_mainlog