Configuring DNS Servers for Mail Forwarding
After you have configured the SMTP connection between the source and target Exchange organizations, you should also add the MX (Mail Exchanger) records for the source and target domains to the DNS. This is necessary to forward the mail (redirected to the additional SMTP addresses added by the Directory Synchronization Agent) to the source and target SMTP bridgeheads.
|
NOTE: Alternatively, instead of creating MX records in DNS, you can configure SMTP connectors to redirect mail to the source and target SMTP bridgeheads correspondingly. |
As an example, we will use the following additional address spaces:
- @source.local—to redirect mail from target to source mailboxes. A secondary SMTP address will be added to each source mailbox by the Directory Synchronization Agent according to this template.
- @target.local—to redirect mail from source to target mailboxes. A secondary SMTP address will be added to each target mailbox by the Directory Synchronization Agent according to this template.
To set Mail Exchanger (MX) record for the source domain:
- In the DNS snap-in, connect to the source DNS server and browse to the Forward Lookup Zones container.
- Right-click the Forward Lookup Zones and select New Zone.
- In the New Zone wizard, select the Primary zone to be created.
- Type local for the Zone name and complete the wizard.
- Right-click the newly-created zone object local, and click New Mail Exchanger on the shortcut menu.
- In the New Resource Record dialog, type source for the Host or child domain.
- Click Browse and select the Exchange server in the source domain to which mail sent to the @source.local domain will be redirected.
- Click OK.
To set the Mail Exchanger (MX) record for the target domain:
- In the DNS snap-in, connect to the target DNS server and browse to the Forward Lookup Zones container.
- Right-click the Forward Lookup Zones and select New Zone.
- In the New Zone wizard, select the Primary zone to be created.
- Type local for the Zone name and complete the wizard.
- Right-click the newly-created zone object local, and click New Mail Exchanger on the shortcut menu.
- In the New Resource Record dialog, type target for the Host or child domain.
- Click Browse and select the Exchange server in the target domain to which mail sent to the @target.local domain will be redirected.
- Click OK.
Testing the SMTP Connectors (Optional)
After both source and target Exchange organizations have been set up for Internet mail flow as well as both source and target DNS servers have been configured for mail forwarding, it is recommended to test the connection between the source and the target organizations.
To test the SMTP connectors:
- Create test mailboxes on the source and target Exchange servers. In this example, both mailboxes will be called mbx1.
- Set the same primary SMTP address for both mailboxes
In this example the primary address for both mailboxes will be mbx1@Westland.Exchange.com.
- Set additional addresses for both mailboxes.
In this example additional address for the source mailbox will be mbx1@source.local, and mbx1@target.local for the target mailbox.
- Create a contact on the source Exchange server and point it to the additional SMTP address of the target Exchange mailbox (mbx1@target.local).
- Create a contact on the target Exchange server and point it to the additional SMTP address of the source mailbox (mbx1@source.local).
- Open the test source mailbox and send a message to the source contact.
- Open the test target mailbox and make sure that the message has arrived.
- From the test target mailbox, send a message to the target contact, and make sure the e-mail has reached the source test mailbox.