MDaemon and Apache2


MDaemon and Apache2

邮件服务器列表
http://down.chinaz.com/class/93_1.htm

MDaemon11.03中文破解补丁

http://download.csdn.net/source/3056648

copy F:\Mdaemon\WorldClient\worldclient.dll F:\Mdaemon\WorldClient\Html

httpd.conf

LoadModule isapi_module modules/mod_isapi.so
AddHandler type-map var
AddHandler isapi-isa .dll
Alias /mail “F:/Mdaemon/WorldClient/HTML/”

<Directory “F:/Mdaemon/WorldClient/HTML/”>
   DirectoryIndex worldclient.dll?view=main
       Options ExecCGI
       AllowOverride None
       Order allow,deny
       Allow from all
</Directory>

我们让apache 来代理邮件服务器使用的端口,下面添加规则

LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so
<VirtualHost *:80>
    ServerName mail.hjxyw.cn (域名)
    ProxyPass / http://192.168.0.241:3000/  

    ProxyPassReverse / http://192.168.0.241:3000/                   

</VirtualHost>

 

 

http://www.5dmail.net

MDaemon的WebClient创建帐号问题

当在MDaemon中找不到“用户创建新帐号”时,需要手工编辑MDaemon\WorldClient\Domains.ini
找到NewAccountCreation=No
改为NewAccountCreation=Yes

login.wdm?redirect=true

 

 

 

Open httpd.conf and change the following:

Listen 192.168.0.1:1000
Listen 192.168.0.1:3000

Then turn on the proxy modules by commenting these two lines in:

LoadModule ssl_module modules/mod_ssl.so
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so

Next is to define two virtual hosts:

NameVirtualHost 192.168.0.1:1000
NameVirtualHost 192.168.0.1:3000

Now we can actually add the virtual hosts.

# WorldClient
<VirtualHost 192.168.0.1:3000>
ServerName mail.mydomain.com
ProxyPass / http://192.168.0.2:3000/
ProxyPassReverse / http://192.168.0.2:3000/
</VirtualHost>
# WebAdmin
<VirtualHost 192.168.0.1:1000>
ServerName mail.mydomain.com
ProxyPass / http://192.168.0.2:1000/
ProxyPassReverse / http://192.168.0.2:1000/
</VirtualHost>

Setting up Apache 2 with SSL

# WorldClient
<VirtualHost 192.168.0.1:3000>
ServerName mail.mydomain.com
SSLEngine on
SSLCertificateFile ‘c:\Apache2\ssl.crt\mail.mydomain.com.crt’
SSLCertificateKeyFile ‘c:\Apache2\ssl.key\mail.mydomain.com.key’
ProxyPass / http://192.168.0.2:3000/
ProxyPassReverse / http://192.168.0.2:3000/
</VirtualHost>
# WebAdmin
<VirtualHost 192.168.0.1:1000>
ServerName mail.mydomain.com
SSLEngine on
SSLCertificateFile ‘c:\Apache2\ssl.crt\mail.mydomain.com.crt’
SSLCertificateKeyFile ‘c:\Apache2\ssl.key\mail.mydomain.com.key’
ProxyPass / http://192.168.0.2:1000/
ProxyPassReverse / http://192.168.0.2:1000/
</VirtualHost>

 


原文链接:,转发请注明来源!

发表评论