query command : ip in blacklist

jlucho

Well-Known Member
Aug 5, 2006
126
1
168
hi cPanel

Using the command line, what would be the command to query an IP, and find out if it is blocked by the exim blacklists?

I see that many servers are passing the antispam filters, when I make the query I see that those IPs are listed in spamhaus, but even so, they enter our mailserver
 
Last edited by a moderator:

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
17,464
2,842
363
cPanel Access Level
Root Administrator
Hey there! I think the best option for this may be the following command:

Code:
exim -bh x.x.x.x
where "x.x.x.x" is the IP address you want to check. This runs a fake transaction as if it were coming from the IP address you provide in the command. More details on that can be found here: