Hướng dẫn cấu hình webmail Mdaemon chạy port 80 trên server 2012r2 

//

Hướng dẫn cấu hình webmail Mdaemon chạy port 80 trên server 2012r2 

Mặc định WebMail Mdaemon chạy trên port 3000, tuy nhiên vì nhu cầu để tiện truy cập cho người dùng chúng ta sẽ cấu hình webmail server chạy trên port 80 hoặc 443( dành cho https)

Lưu ý: Alt-N đưa ra khuyến cáo về những vẫn đề liên quan đến bảo mật khi sử dụng webmail trên IIS server, Alt-N sẽ không hỗ trợ các vấn đề liên quan:

“The setup of these services under IIS is NOT supported by Alt-N technical support. Those who choose to run any MDaemon related protocol or service under IIS must be aware of all security issues and ramifications of running any applications under IIS. It is recommended that all patches and updates be installed on IIS before the installation of MDSyncML as an ISAPI.”

Download Mdaemon 17.5.1 miễn phí tại đây

Cấu hình webmail Mdaemon chạy port 80

Install the Web Server Role with ISAPI support (for exact steps please consult your Operating System documentation)

Open the IIS Manager

On the Connections pane, expand the [Machine_name] node
Click Add Web Site

Enter a Site name (i.e. ‘WorldClient’). This will also create an Application Pool by the same name as the web site (do not manually create an Application Pool).

Click the browse button (the button with ‘…’) by Physical path and browse to the ‘MDaemon\WorldClient\HTML’ directory

Set up the bindings as desired in the Binding section

Click OK

Click on the WorldClient site in the Connections pane.

Double click on Default Document

Select each existing Default document name and click Remove on the Actions pane.

Click Add

Type ‘worldclient.dll’

Click OK

Click on the WorldClient site in the Connections pane

Double click on Handler Mappings

Click Edit Feature Permissions on the Actions pane.

Verify the boxes for Read and Script are selected (checked), and select (check) the box for Execute

Click OK

Double click ISAPI-dll under the Enabled column

Change the value for the Request Path field from ‘*.dll’ to ‘WorldClient.dll’

Set Module as IsapiModule

Under Executable, click the browse button (the button with ‘…’)

Browse to ‘MDaemon\WorldClient\HTML\WorldClient.dll’ (on the C:\ drive by default)

Click OK

Click Yes on the dialog that asks ‘Do you want to allow this ISAPI extension…’

Add the MDSyncML.dllmapping

  1. On the Handler Mappings Actions menu on the right, click on ‘Add Script Map…’ 
  2. In the Request Path field, enter ‘MDSyncML.dll’
  3. Under Executable, click the browse button (the button with ‘…’)
  4. Browse to ‘MDaemon\WorldClient\HTML\MDSyncML.dll’ (on the C:\ drive by default)
  5. In the Name field, enter ‘MDSyncML.dll’
  6. Click the Request Restrictions button
  7. Under the Access tab, select Execute
  8. ClickOK
  9. Click OK
  10. Click Yes on the dialog that asks ‘Do you want to allow this ISAPI extension…’

Add the MDBis.dllmapping

  1. On the Handler Mappings Actions menu on the right, click on ‘Add Script Map…’
  2. In the Request Path field, enter ‘MDBIS.dll’
  3. Under Executable, click the browse button (the button with ‘…’)
  4. Browse to ‘MDaemon\WorldClient\HTML\MDBIS.dll’ (on the C:\ drive by default)
  5. In the Name field, enter ‘MDBIS.dll’
  6. Click the Request Restriction button
  7. Under the Access tab, select Execute
  8. Click OK
  9. Click OK
  10. Click Yes on the dialog that asks ‘Do you want to allow this ISAPI extension…’

Add the MDAirSync.dllmapping

  1. On the Handler Mappings Actions menu on the right, click on ‘Add Script Map…’
  2. In the Request Path field, enter ‘MDAirSync.dll’
  3. Under Executable, click the browse button (the button with ‘…’)
  4. Browse to ‘MDaemon\WorldClient\HTML\MDAirSync.dll’ (on the C:\ drive by default)
  5. In the Name field, enter ‘MDAirSync.dll’
  6. Click the Request Restrictions button
  7. Under the Access tab, select Execute
  8. Click OK
  9. Click OK
  10. Click Yes on the dialog that asks ‘Do you want to allow this ISAPI extension…’

Close the IIS Manager

Update the NTFS permissionson the MDaemon directory:

  1. Open Windows Explorer
  2. Navigate to the MDaemon directory (by default, ‘C:\MDaemon’)
  3. Right click on the MDaemon directory
  4. Choose Properties
  5. Choose the Security tab
  6. Click Edit
  7. Click Add
  8. Type ‘IUSR’
  9. Click OK to close the Select Users or Groups dialog
  10. Enable Full control under Allow for IUSR
  11. Click Add…
  12. Type ‘Network Service’
  13. Click OK to close the Select Users or Groups dialog
  14. Enable Full Control under Allow for Network Service
  15. Click OK to close the Permissions for MDaemon dialog and wait for the changes to take effect
  16. Click OK to close the MDaemon Properties dialog

Disable MDaemon’s own native web server:

  1. Open the Setup menu
  2. Click Web & IM Services…
  3. Select WorldClient runs using external webserver (IIS, Apache, etc)
  4. Click OK

Close Internet Information Services (IIS) Manager if it’s open

To configure the Microsoft ActiveSync protocol, complete these steps:

Install Microsoft’s IIS URL Rewrite 2.0

  • Navigate to http://www.iis.net/download/URLRewrite in your favorite web browser
  • Click on the download for x86 or x64 as is appropriate for your server
  • Launch the downloaded rewrite_2.0_rtw_x86.msi or rewrite_2.0_rtw_x64.msi
  • Accept the terms of the license agreement and click Install
  • Click Finish

Open the IIS Manager

Click on the WorldClient site in the Connections pane

Double click on URL Rewrite

On the Actions pane, click Add Rule(s)…

  1. Under Inbound Rules, select Blank Rule and click OK
  2. Name the rule: MDAirSync.dll
  3. Under Match URLset these settings:

Requested URL: Matches the Pattern (default)

Using: Regular Expressions (default)

Pattern: ^Microsoft-Server-ActiveSync

Ignore Case: Enabled (default)

4. Under Actionset these settings:

  • Action type: Rewrite (default)
  • Rewrite URL: mdairsync.dll
  • Append query string: Enabled (default)

5. In the Actions pane, click Apply

6. In the Actions pane, click Back to Rules 

Close Internet Information Services (IIS) Manager

Lưu ý: 

If using Windows Server 2008 64-bit or Windows Server 2008 R2, configure the WorldClient Application Pool:

  1. Double-click on Application Pools on the Connections pane
  2. Select the WorldClient application pool
  3. On the Actions pane, click Advanced Settings… 
  4. In the General section, locate ‘Enable 32-bit Applications’
  5. Select the field and choose False
  6. In the Process Model section, set Identity to Network Service
  7. Click OK

OK vậy là xong.