Moving from MDaemon to Exchange Server 2003/2007 (Part 3)

Introduction

In the last article, we created an Accepted Domain and Send Connectors to support our coexistence scenario. The current message flow configured can be seen in Figure 1.


Figure 1

Now, we need to configure Exchange Server 2007 to receive mails from Internet and also be a relay server for our Mdaemon server and then we are going to run some tests to validate our coexistence scenario.

Configuring Receive Connectors

By default, Exchange Server 2007 has two receive connectors (Default and Client) we are going to add an additional Receive Connector and it will be configured only to allow relay from any message coming from the Mdaemom Server IP address. After that, we will be able to configure MDaemon to send messages to Exchange Server and the new server will be responsible to send messages to the internet. Also, we are going to configure the Default connector to receive internet mail without requiring authentication (default setting).

First things first, let us create a receive connector to allow MDaemon to send messages:

  1. Open Exchange Management Console.

  2. Expand Server Configuration.

  3. Click on Hub Transport.

  4. Select the server object on the right.

  5. Click on New Receive Connector in the Toolbox Actions.

  6. On the Introduction page, type in a name for the new receive connector and select Custom, click on Next. (Figure 02).


Figure 2

  1. On the Network Settings page, let us use the default settings (all available IP Addresses and listening on 25 port) and to facilitate a troubleshooting later on we can use a different FQDN for this new receive connector, click on Next.

  2. On the Remote Network settings page, remove any entry from Remote IP Address (es) frame and click on Add button and specify the IP address of the MDaemon Server and click on Next. (Figure 3).


Figure 3

  1. On the New Connector page, we will see a summary of all configuration that we have done so far, click on New.

  2. On the Completion page, click on Finish.

The Receive Connector was created however we still have some stuff to do. Double click on the new receive connector, and click on Permissions Groups tab and tick the option Anonymous users and click on OK.

So far our new Receive Connector will allow Mdaemon Server to deliver local messages in Exchange Server 2007, however it will not allow Mdaemon Server to use our Exchange Server as relay server for Internet recipients. We can configure Exchange Server to act as relay server to any recipient coming from Mdaemon Server, we can use the following Exchange Management Shell to accomplish our goal:

Get-ReceiveConnector “MDaemon Receive Connector” | Add-ADPermission –User “NT Authority\Anonymous Logon”-ExtendedRights:ms-exch-SMTP-Accept-Any-Recipient

Note:
Be extremely careful with the cmdlet above, if you configure that on your Receive Connector facing the Internet you will be allowing any external host to use your server as an Open Relay Server and your server is going to join a Black List.

At this point of our article, the new Exchange Server accepts message from MDaemon Server and deliveries the message either internal or external recipients. The second step is to configure Exchange Server 2007 to receive mails from the Internet, this configuration is straight forward process. We just need to configure the Default Receive Connector to accept anonymous users, like we have just done in the previous step. More information how to configure an Exchange Server to receive mail from Internet can be seen on this MSExchange.org article.

Changing MDaemon Server mail flow

If you are moving from another third-party mail server to Exchange Server, you should adapt the settings that we are going to perform on MDaemon Server to your current scenario/solution. Basically, we are going make sure that MDaemon is going to send all mail traffic to Exchange Server. Keep in mind that if both recipients are in the same server (either MDaemon or Exchange Server) the smtp routing will not work because both system check their local address first before sending messages out.

In order to configure MDaemon to forward all message traffic to Exchange Server, these following steps can be done:

  1. Open MDaemon Console (Click on Start, Programs, Mdaemon and then Start MDaemon).

  2. Click on Setup menu item, and click on Primary Domain…

  3. Click on Delivery tab (Figure 04), and select the option Try direct delivery but send problem emails to the server specified below and in the Mail server field add the Exchange Server IP Address.


Figure 4

  1. Click on Unknown Mail tab (Figure 05). Make sure that Send message to the “Postmaster”user and Place message in bad message directory options are uncheck, and check the option Enable advanced options and add the Exchange Server IP address on Send the message to this host field.


Figure 5

Testing the mail routing…

We have just done the required configurations in order to allow Exchange to receive and route messages in a coexistence scenario however we need to test the new settings and make sure that everything works properly. In order to test the new scenario these initial tests can be performed, as follows:

  1. Create a new mailbox user on Exchange Server.

  2. Open Exchange Management Console and check the new user SMTP Address. You can use that e-mail address to perform the next tests.

  3. From any client machine or Exchange Server use telnet utility to connect on Exchange Server port 25 and send a message to the new user and also to an existent user located in MDaemon.
    Note: In this test we are going to use the Default <Server-Name> Receive Connector.

  4. Logged on MDaemon Server try to send a message to an Exchange User.

  5. Logged on MDaemon Server try to send a message to an external recipient.

  6. Logged on OWA try to send a message to a MDaemon user.

  7. Logged on OWA try to reply a test message that came from MDaemon (Step 04).

Note:
The process to test SMTP message through a command line can be seen in this MSExchange.org article or in this Microsoft KB article.

Change the incoming traffic to Exchange server

After testing all the configuration and document all the process, we will be able to switch the incoming traffic to the new Exchange Server without interrupting the mail traffic. You need to change the current firewall settings to forward external traffic arriving on 25 ports from external sources to the IP address of the new Exchange Server.

Conclusion

In this article we worked on the Receive Connectors to accommodate the coexistence between Exchange Server and third-party mail server and also created some tests to validate that coexistence between them. In the next article we are going to cover the directory synchronization to provide some Global Address List during the migration.


nguồn msexchange.org

About Tony Nguyễn
Tôi tên Tony tự Tèo trú tại thôn Tám, Trảng Thanh tỉnh Thừa Thiên. Thưở thiếu thời trí tuệ tôi thường thường, tuy thế tính tình thật thà thẳng thắng, thích thi thơ ...

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s