Link to home
Start Free TrialLog in
Avatar of bruce_77
bruce_77

asked on

Hub Transports relaying externally

Hi

We are running Exchange 2007 SP2. We have dedicated server roles for each role; Mailbox, CAS and HT, but we don't use Edge servers. Instead, we have decided servers running Trend Micro on the perimiter of our network. These are named TM1, TM2, TM3 etc.

Exchange Mailbox > Hub Transport > TM1, TM2, TM3 > Internet

We have multiple AD sites, some larger than others. Only some of our HT's are configured to relay external mail between the TM servers and our Exhange org.

I'm trying to work out how I can find out which HT's they are. Does anyone know how I can find that out, either using Powershell or Exchange Management Console?
Avatar of GusGallows
GusGallows
Flag of United States of America image

The following script will give you the receive connector IP ranges for all receive connectors on all HT servers. You should be able to peruse through it to see which ones are relaying the external IP addresses.
#set the path and name of an output file to create
$out = "C:\ReceiveConnectors.txt"
#capture all ht servers to an array
$hubs = get-transportServer

#iterate through the array and return the name of the ht, the connectors, and the remote IP ranges that can 

#relay through it.

foreach ($hub in $hubs)
{
	echo $hub
	out-file $out -inputobject "Hub Transport Server $hub" -append
	$rcs = get-receiveconnector -Server $hub
	foreach ($rc in $rcs)
	{
		$rcripr = $rc.RemoteIPRanges
		$rcID = $rc.identity
		echo $rcid.name
		echo $rcripr
		#write results to output file
		out-file $out -inputobject $rcID.name -append
		out-file $out -inputobject $rcripr -append
	}
}

Open in new window

Also, if you are wanting to see which server is passing mail out of your environment to the TM servers in the DMZ, in Exchange Management Console, open the Organization Configuration and click on Hub Transport. Then click on Send Connectors. Open each of the connectors until you find one that has the address space of *. Under the Network tab, it should be routing mail through your TMs. Then click on the Source Server to see which HT servers can use that connector.
Avatar of bruce_77
bruce_77

ASKER

Thanks, we have a lot of Send Connectors, that's why I didn't want to go through each one?

Is there a Powershell I can run to find out which Send Connectors have the * Address Space?
ASKER CERTIFIED SOLUTION
Avatar of GusGallows
GusGallows
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
bruce_77, did this work for you?