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. 

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.

(Mail Express has not been tested on Exchange 2016.)

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.

    image080.jpg

  3. 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.

  4. Click the Authentication tab.

    image082.jpg

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

  6. Click the Permission Groups tab.

    image084.jpg

  7. 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.

  8. 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.

    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