Shahbhai.com

Notes, opinions and builds. Gujju Hacker style.

November 6, 2010

Useful Exchange 2010 CMDlET

ALLOW ANONYMOUS RELAY TO EXTERNAL DOMAINS

By Default Anonymous Permission group allows mail flow to internaly domains only, to allow devices authenticating as anonymous users anonymous logon needs to have ""ms-Exch-SMTP-Accept-Any-Recipient"" Extended Right which can be set by using following cmdlet, replace "External Relay Connector" with appropriate Connector.

NEVER run this cmdlet on an internet facing connector...

Get-ReceiveConnector "External Relay Connector" | Add-ADPermission -User "NT AUTHORITY\ANONYMOUS LOGON" -ExtendedRights "ms-Exch-SMTP-Accept-Any-Recipient"

CHANGE SMTP BANNER

If you need to change SMTP banner for a receive connector following cmdlet can be used

For connector on local server
Set-receiveconnector –identity “NameOfConnector” –banner “220 I am not the connector you are looking for”

For connector on a remote server
Set-receiveconnector –identity “REMOTESERVERNAME\NameOfConnector” –banner “220 I am THE connector you are looking for”

TEST OUTLOOK CONNECTIVITY FROM EXCHANGE SERVER

if you are seeing outlook connectivity/timeout and/or password prompt issues test-outlookconnectivity cmdlet can be very useful to troubleshoot those issues below are some variations of the cmdlet which can be used

Test-OutlookConnectivity -TrustAnySslCert $true
Test-OutlookConnectivity -Protocol:Http -GetDefaultsFromAutoDiscover:$true -verbose
Test-OutlookConnectivity -RpcProxyServer:EXCHPDC01V -RpcProxyAuthenticationType:Basic -ClientAccessServer:EXCHPDC01V
Test-OutlookConnectivity -RpcProxyTestType:Internal -RpcTestType:Server
Test-OutlookConnectivity -RpcProxyTestType:external -RpcTestType:Server
Test-OutlookConnectivity -RpcProxyTestType:external -RpcTestType:Array
Test-OutlookConnectivity -RpcProxyTestType:Internal -RpcTestType:Array
Test-OutlookConnectivity -Protocol:tcp -GetDefaultsFromAutoDiscover:$true -verbose

← All articles