Get-ReceiveConnector | ft -auto
Identity Bindings Enabled
-------- -------- -------
EX1\Default EX1 {0.0.0.0:2525, [::]:2525} True
EX1\Client Proxy EX1 {[::]:465, 0.0.0.0:465} True
EX1\Default Frontend EX1 {[::]:25, 0.0.0.0:25} True
EX1\Outbound Proxy Frontend EX1 {[::]:717, 0.0.0.0:717} True
EX1\Client Frontend EX1 {[::]:587, 0.0.0.0:587} True
EX1\Relay EX1 {0.0.0.0:25} True
EX2\Default EX2 {0.0.0.0:2525, [::]:2525} True
EX2\Client Proxy EX2 {[::]:465, 0.0.0.0:465} True
EX2\Default Frontend EX2 {[::]:25, 0.0.0.0:25} True
EX2\Outbound Proxy Frontend EX2 {[::]:717, 0.0.0.0:717} True
EX2\Client Frontend EX2 {[::]:587, 0.0.0.0:587} True
Get-ReceiveConnector "EX1\Relay EX1" | fl RemoteIPRanges
RemoteIPRanges : {172.16.20.5, 172.16.162.50, 172.16.104.5, 10.88.162.9, 10.88.162.58,
10.88.162.26, 10.88.162.24, 10.88.162.237, 10.88.162.2, 10.88.162.19, 10.88.162.18,
10.88.162.15, 10.87.104.29, 10.87.104.26, 10.85.99.96, 10.85.99.36...}
$FormatEnumerationLimit
$FormatEnumerationLimit =-1
Get-ReceiveConnector "EX1\Relay EX1" | fl RemoteIPRanges
RemoteIPRanges : {172.16.20.5, 172.16.162.50, 172.16.104.5, 10.88.162.9, 10.88.162.58,
10.88.162.26, 10.88.162.24, 10.88.162.237, 10.88.162.2, 10.88.162.19, 10.88.162.18, 10.88.162.15,
10.87.104.29, 10.87.104.26, 10.85.99.96, 10.85.99.36, 10.85.99.25, 10.83.7.87, 10.83.7.61,
10.83.7.60, 10.83.7.54, 10.83.7.43, 10.83.7.41, 10.83.7.237, 10.83.7.233, 10.83.7.18,
10.83.7.147, 10.81.26.101, 10.0.0.0/24, 192.168.100.94-192.168.100.104, 10.10.10.151}
$RecvConn = Get-ReceiveConnector "EX1\Relay EX1"
New-ReceiveConnector -Name "Relay EX2" -RemoteIPRanges $RecvConn.RemoteIPRanges -Bindings @('0.0.0.0:25') -Usage "Custom" -Server "EX2" -TransportRole "FrontendTransport" -PermissionGroups "AnonymousUsers"
Get-ReceiveConnector "EX2\Relay EX2" | Add-ADPermission -User 'NT AUTHORITY\Anonymous Logon' -ExtendedRights MS-Exch-SMTP-Accept-Any-Recipient
Have a question about something in this article? You can receive help directly from the article author. Sign up for a free trial to get started.
Comments (0)