Exchange 2010: IP Block List Providers and the Variables

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/%7B0%7D.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/%7B0%7D.html for details).”