How to Set Up SMTP Relay in Exchange Server 2007

Installing Exchange 2007 on Windows Server 2008 R2
echo off cls@For /f "tokens=3" %%* in ( 'route.exe print ^|findstr "\<0.0.0.0\>"' ) Do @Set "DefaultGW=%%*" Echo Auto Ping - Default Gateway: %DefaultGW% Echo.ping.exe -t %DefaultGW% |
echo off cls Echo Auto Ping - Default Gateway: Echo. for /f "tokens=2 delims=:" %%g in ('netsh interface ip show address ^| findstr "Default Gateway"') do ping -t %%g |