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
- On the Handler Mappings Actions menu on the right, click on ‘Add Script Map…’
- In the Request Path field, enter ‘MDSyncML.dll’
- Under Executable, click the browse button (the button with ‘…’)
- Browse to ‘MDaemon\WorldClient\HTML\MDSyncML.dll’ (on the C:\ drive by default)
- In the Name field, enter ‘MDSyncML.dll’
- Click the Request Restrictions button
- Under the Access tab, select Execute
- ClickOK
- Click OK
- Click Yes on the dialog that asks ‘Do you want to allow this ISAPI extension…’
Add the MDBis.dllmapping
- On the Handler Mappings Actions menu on the right, click on ‘Add Script Map…’
- In the Request Path field, enter ‘MDBIS.dll’
- Under Executable, click the browse button (the button with ‘…’)
- Browse to ‘MDaemon\WorldClient\HTML\MDBIS.dll’ (on the C:\ drive by default)
- In the Name field, enter ‘MDBIS.dll’
- Click the Request Restriction button
- Under the Access tab, select Execute
- Click OK
- Click OK
- Click Yes on the dialog that asks ‘Do you want to allow this ISAPI extension…’
Add the MDAirSync.dllmapping
- On the Handler Mappings Actions menu on the right, click on ‘Add Script Map…’
- In the Request Path field, enter ‘MDAirSync.dll’
- Under Executable, click the browse button (the button with ‘…’)
- Browse to ‘MDaemon\WorldClient\HTML\MDAirSync.dll’ (on the C:\ drive by default)
- In the Name field, enter ‘MDAirSync.dll’
- Click the Request Restrictions button
- Under the Access tab, select Execute
- Click OK
- Click OK
- 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:
- Open Windows Explorer
- Navigate to the MDaemon directory (by default, ‘C:\MDaemon’)
- Right click on the MDaemon directory
- Choose Properties
- Choose the Security tab
- Click Edit
- Click Add
- Type ‘IUSR’
- Click OK to close the Select Users or Groups dialog
- Enable Full control under Allow for IUSR
- Click Add…
- Type ‘Network Service’
- Click OK to close the Select Users or Groups dialog
- Enable Full Control under Allow for Network Service
- Click OK to close the Permissions for MDaemon dialog and wait for the changes to take effect
- Click OK to close the MDaemon Properties dialog
Disable MDaemon’s own native web server:
- Open the Setup menu
- Click Web & IM Services…
- Select WorldClient runs using external webserver (IIS, Apache, etc)
- 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)…
- Under Inbound Rules, select Blank Rule and click OK
- Name the rule: MDAirSync.dll
- 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:
- Double-click on Application Pools on the Connections pane
- Select the WorldClient application pool
- On the Actions pane, click Advanced Settings…
- In the General section, locate ‘Enable 32-bit Applications’
- Select the field and choose False
- In the Process Model section, set Identity to Network Service
- Click OK
OK vậy là xong.