Windows : How to set the SMTP banner on Exchange 2010

By | March 22, 2013

By default, Exchange will set the smtp banner to the local name into the Active Directory. However, this can cause serious issue when communicating with other mail servers on the Internet.

The banner need to be changed on the “ReceiveConnector” through the Exchange Management Shell.

1. Get the current ReceiveConnector name :

Get-ReceiveConnector

This should return something like this :

[PS] C:\Windows\system32>Get-ReceiveConnector
Identity             Bindings                               Enabled
--------             --------                               -------
EXCHANGE_SERVER_NAME\Default EXCHANGE_SERVER_NAME {0.0.0.0:25} True
EXCHANGE_SERVER_NAME\Windows SBS Fax Sharepo... {127.0.0.1:25} True

 

2. Then, simply rename the banner matching your mail server fully qualified domain name (replace “mail.domain.tld” by yours :

Set-ReceiveConnector -Identity "Default EXCHANGE_SERVER_NAME" -Banner "220 mail.domain.tld"

Press enter, the prompt should return nothing if successful. The change will be immediate.