• Home
  • Topics
    • Office 365
    • Teams
    • SharePoint
    • Exchange 2019
    • Exchange 2016
    • Exchange 2013
    • Hybrid
    • Certificates
    • PowerShell
    • Migration
    • Security
    • Azure
  • Blog
  • Podcast
  • Webinars
  • Books
  • About
  • Subscribe
    • Facebook
    • Twitter
    • RSS
    • YouTube

Practical 365

You are here: Home / Exchange Server / How to Migrate a Relay Connector from Exchange Server 2007 to 2010

How to Migrate a Relay Connector from Exchange Server 2007 to 2010

August 13, 2011 by Paul Cunningham 6 Comments

In most organizations some applications or devices require the ability to relay email through Exchange servers.

The source IP addresses of applications and devices that integrate with Exchange using SMTP will need to be added to a Receive Connector that permits relay. Over time this can built up to quite a long list, which creates a tedious task of re-entering all of those IP addresses when you want to migrate this relay connector role, for example during a migration from Exchange 2007 to Exchange 2010.

However if you’d prefer a faster way of doing this you can effectively clone the remote IP address configuration from the existing Receive Connector to the new one by using the Exchange Management Shell.

On an Exchange 2010 server launch the Exchange Management Shell.

The first step is to retrieve the list of remote IP addresses from the existing receive connector by running the following command.  This is a single line command, and you should replace the server name and connector name to suit your environment.

1
[PS] C:\>$ips = (Get-ReceiveConnector "HO-EX2007-HT1Relay HO-EX2007-HT1").RemoteIPRanges

Next run the following command to create the new relay connector on the Exchange 2010 Hub Transport server with the same remote IP range. Again this is a single line command, and you should replace the server name and connector name to suit your environment.

1
2
3
4
5
[PS] C:\>New-ReceiveConnector -Name "Relay HO-EX2010-CAHT1" –Server HO-EX2010-CAHT1” -Usage Custom -AuthMechanism ExternalAuthoritative -PermissionGroups ExchangeServers -Bindings 0.0.0.0:25 -RemoteIPRanges $ips
 
Identity                                Bindings                           Enabled
--------                                --------                           -------
HO-EX2010-CAHT1Relay HO-EX2010-CAHT1   {0.0.0.0:25}                       True

With that simple two step process the new relay connector has been created on the Exchange 2010 Hub Transport server with the same remote IP range as the original one.

Exchange Server Exchange 2007, Exchange 2010, Exchange Management Shell, Hub Transport, PowerShell, Relay

Comments

  1. Josh says

    March 14, 2014 at 11:40 am

    Worked flawlessly for me. Going from 2010 to 2013. Thanks.

    Reply
    • Josh says

      March 14, 2014 at 10:21 pm

      Well, it worked as intended but I guess going from 2010 to 2013 it wasn’t flawless. There was an issue copying my “hub transport” relays. They needed to have the frontend transport role. After a restart the exchange transport service wouldn’t start because of the new relays. I used this command to fix each of my relays and the transport service came right back on and still worked after reboot. Set-ReceiveConnector “Your Relay Name” –TransportRole FrontEndTransport Hopefully this saves one person from having a heart attack during their exchange migration.

      Reply
      • Ahmed says

        December 31, 2015 at 12:22 am

        you can use the following article:

        http://www.msexchange.org/kbase/ExchangeServerTips/ExchangeServer2013/Powershell/copy-receive-connectors-new-exchange-server.html

        Reply
  2. rasheedah says

    January 25, 2014 at 2:37 am

    this is did not work or maybe it did. when I set the variable it return with no output which is fine
    but when I enter $ips to see the ip addresses nothing returned.

    is that the expected results?

    Reply
  3. victoriano says

    November 28, 2013 at 3:05 am

    hello,

    Is there any way to transfer settings of a 2010 relay server to another in the same organization generated as a relay?

    I relay mail as configured with ips allowed, and I want to transfer the same settings to mail2

    Reply
    • Paul Cunningham says

      November 28, 2013 at 11:28 am

      The same process above should also work for 2010 -> 2010.

      Reply

Leave a Reply Cancel reply

You have to agree to the comment policy.

Recent Articles

  • The Practical 365 Weekly Update: S2, Ep 8 – What to expect in 2021, Solarigate, TLS in Exchange and new Teams updates
  • Security updates released for Exchange and SharePoint Servers 2010 to 2019
  • The Practical 365 Weekly Update: S2, Ep 7 – Urgent Exchange security updates, new Teams features launch
  • How to train your users against threats with Attack Simulation Training
  • Fall 2020 roundup of compliance updates
Practical 365

Related Posts

Related Posts

Training Courses

  • Configuring and Managing Office 365 Security
  • Office 365 Admin Playbook
  • Exchange 2016 Exam 70-345
  • Managing Exchange Mailboxes and Distribution Groups in PowerShell
  • More Training Courses...

Recommended Resources

  • Office 365 Security Resources
  • Office 365 Books
  • Exchange Server Books
  • Exchange Server Migrations
  • Exchange Analyzer
  • Digicert SSL Certificates

About This Site

Practical 365 is a leading site for Office 365 and Exchange Server news, tips and tutorials. Read more...

Find out more about advertising with us.

Contact us


Subscribe to our newsletter
  • Facebook
  • Twitter
  • RSS
  • YouTube

Copyright © 2021 Quadrotech Solutions AG · Disclosure · Privacy Policy
Alpenstrasse 15, 6304 Zug, Switzerland