Skip to content

Setup WebMail to WebServer

Webmail runs in some web server through the following examples

Setup WebMail to IIS

This section contains notes and hints specific to integrating Webmail with Web servers running IIS.

  1. Install php as a IIS ISAPI module and add virtual directory to IIS. Please read http://www.phpbuddy.com/sub_articles.php?other_articles=4

The default directory of this software is C:\Program Files\Magic Winmail
The default directory of webmail is C:\Program Files\Magic Winmail\server\webmail\www
The default directory of php dll is C:/WINNT/php5, your windows install directory

If your server used a NTFS file system, Please add "Full Control" Permissions to "Everyone" for next directory and file:

C:\Program Files\Magic Winmail\server\data
C:\Program Files\Magic Winmail\server\store
C:\Program Files\Magic Winmail\server\netstore
C:\Program Files\Magic Winmail\server\SpamAssassin
C:\Program Files\Magic Winmail\server\webmail\temp
C:\WINDOWS\Temp

Setup Webmail to Apache

This section contains notes and hints specific to integrating Webmail with Web servers running Apache.

Preparation

If you need the latest version of Apache, download it from http://www.apache.org

Setting Up Apache

If Apache does not support PHP, perform the following steps:

In the Apache installation directory, edit the conf\httpd.conf file and add the following text:

LoadModule php5_module "C:/WINNT/php5/php5apache2_2.dll"
AddType application/x-httpd-php .php
Alias /webmail "C:/Program Files/Magic Winmail/server/webmail/www/"
<Directory "C:/Program Files/Magic Winmail/server/webmail/www">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
DirectoryIndex index.php index.html index.htm
</Directory>

If Apache supports PHP, make sure you have PHP version 5.x, then perform the following steps:

1. Edit the php.ini file to include the following text:

PHP load LDAP module(extension=php_ldap.dll)
PHP load LDAP module(extension=php_mbstring.dll)
PHP load gd module(extension=php_gd2.dll)
PHP load openssl module(extension=php_openssl.dll)
PHP load com dotnet module(extension=php_com_dotnet.dll)
PHP load com sqlite module(extension=php_sqlite3.dll)
magic_quotes_gpc = Off

2. In the Apache installation directory, edit the conf\httpd.conf file and add the following text:<

Alias /webmail "C:/Program Files/Magic Winmail/server/webmail/www/"
<Directory "C:/Program Files/Magic Winmail/server/webmail/www">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
DirectoryIndex index.php index.html index.htm
</Directory>

If your server used a NTFS file system, Please add "Full Control" Permissions to "Everyone" for next directory and file:

C:\Program Files\Magic Winmail\server\data
C:\Program Files\Magic Winmail\server\store
C:\Program Files\Magic Winmail\server\netstore
C:\Program Files\Magic Winmail\server\SpamAssassin
C:\Program Files\Magic Winmail\server\webmail\temp
C:\WINNT\Temp

Note: The procedure outlined here adds a virtual director. Use a similar procedure to add a virtual web site.

Testing

After setup and configuration, use Internet Explorer to access http://yourserverip/webmail/ as a test.