Configuring Authenticated Access to Exchange

Typically, SMTP uses port 25. However, an alternative SMTP "submission" port has been reserved on port 587. For Exchange 2007 and 2010, installation will create a "Default" module listening on port 25 as well as a "Client" module listening on port 587. Exchange 2003 installation will only create the "Default" module.

For authenticated access, create a module listening on port 587. The important requirements for Mail Express are that the module accept "basic authentication" and that an appropriate user (with the necessary permissions) be made available to the Mail Express system. (See also Configuring Anonymous Access to Exchange.)

Configuring Mail Express for Authenticated Access

After you have configured the Exchange Server for authenticated access as described below, depending on the version of Exchange, you must configure Mail Express to access the "Client" module that you defined. 

  1. On the Mail Express Mail Server Configuration page, in the Host box provide the mail server domain and in the Port box specify port 587. 

  2. If you enabled encryption, select the Connect using SSL check box, then do one of the following: 

  3. Because the "Client" module accepts Exchange users, we want to ensure that the Use Exchange authentication check box is selected. In the illustration, the Exchange user is mail.express@dev.globalscape.com. With this configuration, the From address and Reply to address will be used in messages generated by the Mail Express system. The From address will also be used in the SMTP transfer with Exchange after authentication and must reflect the mailbox for the user specified in the Username box. You can set the Reply to address to whomever the administrator wants to monitor those messages.

See also Testing the Mail Server Configuration.

Exchange 2013

  1. In the Exchange admin center, in the left menu, click mail flow.

  2. Next to Select server, specify the exchange server to configure (if there is more than one), then in the top menu, click receive connectors.

  3. On the receive connectors page, click the plus sign + to add a new connector. The new receive connector dialog box appears.

  4. Provide the following information, then click next:

  5. Under Network adapter bindings, click the plus sign + to specify the IP addresses and port that Mail Express is to use, then click finish. (For SSL connections, the default is port 587.)

  6. After the receive connector is created, double-click it in the list.

  7. The receive connector's properties appear. Click security.

  8. Select the following check boxes:

  9. Ensure the Anonymous users check box is not selected, then click save.

  10. Grant permission to the Mail Express user. When Mail Express users send packages via the web portal, Mail Express generates email on their behalf, which it then directs to the Exchange server. The ability to "impersonate" another user requires a special permission. The user whose credentials with which Mail Express will be authenticating requires the "Accept any Sender" permission when impersonating external addresses and "Accept Authoritative Domain Sender" when impersonating local addresses.

image088.jpg

The first command in the image above is:

Add-ADPermission "Client ADSERVER" –User "Mail Express" –ExtendedRights ms-Exch-SMTP-Accept-Authoritative-Domain-Sender

The second command is:

Add-ADPermission "Client ADSERVER" –User "Mail Express" –ExtendedRights ms-Exch-SMTP-Accept-Any-Sender

The format of the commands shown in the image above is:

Add-ADPermission "${SMTP_MODULE}" –User "${MAIL_EXPRESS_USER}" –ExtendedRights ${REQUIRED_PERMISSION}

Where:

"${SMTP_MODULE}" is the name of the module

"${MAIL_EXPRESS_USER}" is the account created for Mail Express

 ${REQUIRED_PERMISSION} is one of the permissions, ms-Exch-SMTP-Accept-Authoritative-Domain-Sender or ms-Exch-SMTP-Accept-Any-Sender

Exchange 2007 and 2010

  1. In the Exchange Management Console, click Server Configuration > Hub Transport > ADSERVER > Client ADSERVER, then right-click Client ADSERVER and click Properties. The Client ADSERVER Properties dialog box appears.

  2. Click the Network tab.

  3. image080.jpg

  4. Under Use these local IP addresses to receive mail, the Local IP address(es) and Port appear. Verify that the receive connector is listening on port 587. The actual port number is not significant as long as the Mail Express Server is configured to use the some port. If necessary, click Add or Edit to add or change the listening port, then click OK.

  5. Click the Authentication tab.

  6. image082.jpg

  7. Select the following check boxes, then click OK:

  8. Click the Permission Groups tab.

  9. image084.jpg

  10. In conjunction with the "basic authentication" we want to ensure that Exchange is authenticating against Exchange users and not accepting anonymous users. Ensure the Exchange users check box is selected that the Anonymous users check box is not selected, then click OK to close the Properties dialog box and save your settings.

  11. Grant permission to the Mail Express user. When Mail Express users send packages via the web portal, Mail Express generates email on their behalf, which it then directs to the Exchange server. The ability to "impersonate" another user requires a special permission. In Exchange 2007/2010, the user whose credentials with which Mail Express will be authenticating requires the "Accept any Sender" permission when impersonating external addresses and "Accept Authoritative Domain Sender" when impersonating local addresses.

  12. Do one of the following:

image088.jpg

The first command in the image above is:

Add-ADPermission "Client ADSERVER" –User "Mail Express" –ExtendedRights ms-Exch-SMTP-Accept-Authoritative-Domain-Sender

The second command is:

Add-ADPermission "Client ADSERVER" –User "Mail Express" –ExtendedRights ms-Exch-SMTP-Accept-Any-Sender

The format of the commands shown in the image above is:

Add-ADPermission "${SMTP_MODULE}" –User "${MAIL_EXPRESS_USER}" –ExtendedRights ${REQUIRED_PERMISSION}

Where:

"${SMTP_MODULE}" is the name of the module

"${MAIL_EXPRESS_USER}" is the account created for Mail Express

 ${REQUIRED_PERMISSION} is one of the permissions, ms-Exch-SMTP-Accept-Authoritative-Domain-Sender or ms-Exch-SMTP-Accept-Any-Sender

image096.jpg

Exchange 2003

Exchange 2003 does not install an alternative client submission virtual server, so you must create one. In this example, it is called "Alternative Submission." 

  1. In the Exchange console, click Servers > ADSERVER2003 > Protocols > SMTP > Alternative Submission, then right-click Alternative Submission and click Properties.

  2. image057.jpg

  3. On the General tab, click Advanced.

  4. image059.jpg

  5. Configure the virtual server to listen on port 587. The actual port number is not significant so long as it is noted so that the Mail Express server can be configured to use the some port. Click OK.

  6. Click the Access tab, then click Authentication.

  7. image060.jpgimage062.jpg

  8. The most important requirement of this module is that it allows "basic authentication." In the Authentication dialog box, select the Basic authentication check box and the Requires TLS encryption check box (so that the user password cannot be intercepted in transit), then click OK to close the Authentication dialog box and OK again to close the Properties dialog box.

  9. Next, you will specify the user with which Mail Express will be authenticating on the Exchange server. When Mail Express users send packages via the web portal, Mail Express generates email on their behalf, which it then directs to the Exchange server. The ability to "impersonate" another user requires a special permission. In Exchange 2003, this is the "Send As" permission. In the Exchange console tree, click Servers > ADSERVER2003, then right-click ADSERVER 2003 and click Properties. The Properties dialog box appears.

  10. image068.jpg

  11. On the Security tab, click Add to specify the user account that the Mail Express server will be using to authenticate. Then, with the user selected, ensure that the Send As permission's Allow check box is selected, while every other permission's check box is cleared. 

  12. After granting the permission, the SMTP service must be restarted so that it is aware of the changes.

image070.jpg

For more information, review the topics in the Contents to the left. If the Contents pane is hidden, click <--Show.

You can also search the Knowledgebase for help, or pose your question in the Globalscape User Forum. Visit the Mail Express Support Center for the most up-to-date information, to view version history, updates, and activation instructions, or to download a PDF of this user guide. For information about Globalscape, visit www.globalscape.com or follow us on Twitter.

Last modified: 07 October 2013 at 9:14:19