How to block *.domain (Hostname)
I have been reading all similar threads to block mails in exim, but none apply's to my case:
There is a company sending mails to one of my server, the domain use the hostname *.mailendo.com to send mails but they send mails from a lot of domains/accounts like jerry@domain1.com, paula@domain2.com but the sender hostname is always *.mailendo.com
How can i block *.mailendo.com HOSTNAMES from sending us mails?
Ip block is impossible, every hostname has different ip (obviously)
block accounts domain is impossible they have a lot domains, the only thing that is constant is the hostname *.mailendo.com
This list code (and similars) does not work because it check only the "to", "from" not the sender hostname:
if first_delivery
and ("$h_to:, $h_cc:" contains ".link")
or ("$h_from:" contains ".link")
then
seen finish
endif
Is there any way to blacklist sender hostnames directly?
-
Hello, If the hostname is listed in the message header, you could setup a filter rule with the "Any Header" option documented at: How to Configure Mail Filters - cPanel Knowledge Base - cPanel Documentation Thank you. 0
Please sign in to leave a comment.
Comments
1 comment