In Exchange 2003 we could set custom error message with below variables: %0: IP address of the sending mail server %1: Rule name of the connection filter %2: The RBL provider
BUT in Exchange 2007 or Exchange 2010 the variables above are not longer available.
To set custom rejection response we can use below variables. {0}: IP address of the sending mail server {1}: Rule name of the connection filter {2}: The RBL provider
I.e. Message refused: your IP {0} is listed by {2} (see http://multirbl.valli.org/lookup/{0}.html for details).
Naturally we can also use the EMS:
Add-IPBlockListProvider -Name:Spamhaus -LookupDomain:zen.spamhaus.org -AnyMatch $True –RejectionResponse “Message refused: your IP {0} is listed by {2} (see http://multirbl.valli.org/lookup/{0}.html for details).”
Ed Price - MSFT edited Original. Comment: Tags
It's a pity that Exchange (neither 2003 nor the latest 2010) doesn't run an additional DNS lookup for the "TXT" RR against the blacklist which blocked the sender, otherwise the message may also be automatically generated using the returned informations; for an example, you may try running the command "nslookup 2.0.0.127.zen.spamhaus.org."; this will return the IP as "listed" (127.0.0.2 is the canonical "check IP" used by most/all DNSBL); now, willing to obtain a rejection message we may just run "nslookup -type=TXT 2.0.0.127.zen.spamhaus.org." which will return a text string explaining why the given IP is being listed on that particular DNSBL