Hosts file in C:/Windows/system32/Drivers/etc hosts file in C:/Windows/system32/Drivers/etc
In addition, if you want to access winmail using a domain name on the local machine, or use the client software to send and receive emails, you need to add
X. x domain name (x. x is the local IP address)
For different versions of IIS and PWS, the methods for setting support for PHP are different. This article describes the settings of the following versions:
Iis5.x settings
During this setup, the operating system is a Windows 2000 server in the Chinese version.
1) create a virtual directory
In "start"-> "program"-> "Management Tools"-> "Internet Service Manager", run the IIS management program. In the "Internet Information Service" program that appears, select "Default web site", right-click, and choose "New"> "virtual directory" from the shortcut menu ".
The following virtual directory creation wizard appears, and click "Next ".
Set the virtual directory alias, that is, the name when you access the directory using a browser. If you enter webmail, you can access it through http: // yourserverip/webmail/in the browser. Click "Next ".
Select the web site content directory, that is, the webmail program directory of the magic winmail program. The specific location is ~ /Server/webmail/WWW (Note::~ Indicates the directory selected during installation of magic winmail, which is installed in C:/program files/magic winmail ). Click "Next ".
Set the access permission for the virtual directory and select "read", "run script", and "run ". Click "Next ".
Virtual directory set. Click "finish"
2) Set virtual directory Properties
Modify virtual directory: on the "virtual directory" attribute page, set the virtual directory attribute.
Set "application protection" to "medium (shared)", and then click "Configure... ", In the pop-up application configuration dialog box, application ing.
Click "add" to add a new application ing. The executable file is C:/winnt/PhP4/php.exe. The extension is. php. Click "OK ".
Check whether there is any new PHP ing in the application ing list. Click "OK ".
Modify the default document: on the "document" attribute page, add the default document index. php.
3) set access permissions for directories (files)
Add IUSR _ * (Internet Guest Account) "modify" to the following directory and file permissions: (the file system is NTFS, And the FAT32 file system can skip this step)
1. webmail/TEMP directory :~ /Server/webmail/temp
2. Mail storage directory :~ /Server/Store
3. network disk storage directory :~ /Server/netstore
4. Database Files :~ /Server/*. cfg
5. Database Backup File :~ /Server/*. cfg. Bak
6. Upload attachments: C:/winnt/temp (Windows Temp Directory)
7. Smart anti-spamassassin Directory :~ /Server/spamassassin
If the version is earlier than 4.1, you also need to set the webmail/admin/TEMP directory. The specific location is ~ /Server/webmail/admin/temp
Note:
1 .~ Indicates the directory selected during installation of magic winmail, which is installed in C:/program files/magic winmail.
2. For the directory permission, select "spread the parent-class inherited object to this object"
3. If the "email storage directory" is changed, set the directory permission after the change.
Iis6.0 settings
During this setup, the operating system is a Windows 2003 enterprise server in the Chinese version.
1) create a virtual directory and set
In "start"-> "Administrative Tools"-> "Internet Information Service (IIS) manager", run the IIS management program) manager "program, select" website "->" default website ", right-click, and choose" New "->" virtual directory "from the pop-up menu ".
The steps for adding and setting virtual directories on iis6.0 are the same as those in iis5.x. SeeIis5.x virtual directory addition and attribute settings. This is not detailed here.
2) added Web service extensions
Setting PHP support on iis6.0 requires not only adding application ing, but also adding web service extension. Select "Web Service extension" and click "Add a new Web Service extension" on the right side of the page ".
In the "new web service extension" dialog box that appears, enter the PHP extension and click "add... "button, select the PHP parser, select" set extension status to allow ", and click" OK ".
PHP interpreted the program as C:/Windows/PhP4/php.exe.
Finally, check whether PHP has been added to the web service extension list.
3) set access permissions for directories (files)
Add IUSR _ * (Internet Guest Account) "modify" to the following directory and file permissions: (the file system is NTFS, And the FAT32 file system can skip this step)
1. webmail/TEMP directory :~ /Server/webmail/temp
2. Mail storage directory :~ /Server/Store
3. network disk storage directory :~ /Server/netstore
4. Database Files :~ /Server/*. cfg
5. Database Backup File :~ /Server/*. cfg. Bak
6. Upload attachments: C:/winnt/temp (Windows Temp Directory)
7. Smart anti-spamassassin Directory :~ /Server/spamassassin
If the version is earlier than 4.1, you also need to set the webmail/admin/TEMP directory. The specific location is ~ /Server/webmail/admin/temp
Note:
1 .~ Indicates the directory selected during installation of magic winmail, which is installed in C:/program files/magic winmail.
2. For the directory permission, select "spread the parent-class inherited object to this object"
3. If the "email storage directory" is changed, set the directory permission after the change.
4) IIS6: the size of the uploaded file is too small (you do not need to set Windows 2003 SP1 already installed)
For security reasons, IIS 6 requests a maximum of 200 kb by default (that is, the maximum data submission quota is 200 Kbyte, 204800 bytes ).
Solution:
1. Disable the IIS Admin Service.
2. Open/Windows/system32/inetsrv/metabase. xml
3. Modify the value of aspmaxrequestentityallowed as needed. The default value is 204800.
4. Start IIS Admin Service
5) in IIS 6.0, you cannot download attachments larger than 4 MB (you do not need to set Windows 2003 SP1 already installed)
Solution:
1. Disable the IIS Admin Service.
2. Open/Windows/system32/inetsrv/metabase. xml
3. Modify the value of aspbufferinglimit as needed. You can change it to 20480000 or 20 m.
4. Start IIS Admin Service
3. Set Directory (File) Access Permissions
Add IUSR _ * (Internet Guest Account) "modify" to the following directory and file permissions: (the file system is NTFS, And the FAT32 file system can skip this step)
1. webmail/TEMP directory :~ /Server/webmail/temp
2. Mail storage directory :~ /Server/Store
3. network disk storage directory :~ /Server/netstore
4. Database Files :~ /Server/*. cfg
5. Database Backup File :~ /Server/*. cfg. Bak
6. Upload attachments: C:/winnt/temp (Windows Temp Directory)
7. Smart anti-spamassassin Directory :~ /Server/spamassassin
If the version is earlier than 4.1, you also need to set the webmail/admin/TEMP directory. The specific location is ~ /Server/webmail/admin/temp
Note:
1 .~ Indicates the directory selected during installation of magic winmail, which is installed in C:/program files/magic winmail.
2. For the directory permission, select "spread the parent-class inherited object to this object"
3. If the "email storage directory" is changed, set the directory permission after the change.
Iv. Test
After the preceding setup process is complete, you can browse through Internet Explorer. If the following page appears, the setting is successful. Otherwise, you must re-check your settings.
Use a dynamic IP address to deploy a winmail Server
Install and run gnhost
1. log on to www.gnway.com and register the user name, as shown in:
Figure 1Now, you have a free second-level domain name "your username .gnway.net" and can enjoy the free dynamic domain name resolution service.
2. log in with the applied user name and go to the following page:
Figure 23. If you want to enjoy more professional services, click "Apply" as prompted, as shown in:
Figure 34. If you already have a top-level domain name, follow the instructions in Figure 2.
5. If you obtain an intranet IP address and share the Internet via a vro, You need to perform port ing,Click hereView the external IP address of your machine.
6. log on to the Customer Service-Download Area and use the latest client version (Windows and Linux)Click here to download the latest client software
7. log on to and run the client with the applied user name on your server, as shown in:
Ping the domain name you applied for in jinwanwei. If the obtained IP address is the same as the public IP address displayed on the client, the client runs properly and the Resolution Service is correct.
4) We also need to add an MX record for the top-level domain name. Log on to the http://www.gnway.com, log on with the applied user name and password, and enter the domain name management. The "Domain Name console" that is activated is blue. After you click "Domain Name console", the user's a and MX records are displayed. View (3) MX record (MX record, that is, mail exchange record, is a record of the domain name on the DNS server, used to tell the DNS server, which computer is responsible for email processing in the domain name?) in the name column, enter "null. domain Name, fill in the Host Name field with the name you set When configuring the server, as shown in:
3. Use Management Tools to set
1) OK. Now the domain name has been set. Before sending and receiving emails, we need to set up an email server. Start the client management tool on the desktop. You can use the user name and password set during installation to log on.
2) After logging on to the management tool, you can use system Settings> system services to check whether the system's SMTP, POP3, IMAP, and other services are running properly. The green icon indicates that the service is running successfully. The red icon indicates that the service is stopped. For example
If you find that services such as SMTP, POP3, admin, HTTP, IMAP, or LDAP have not been started successfully, use "system log"> "system" to view system startup information. If the startup fails, it is generally because the port is occupied and cannot be started. You can close the program that occupies the port or change the port and restart the relevant services. For example, when Windows 2000 is installed by default, the SMTP service of IIS will be installed, resulting in the failure of the SMTP service in the mail system. We stopped the SMTP service of IIS, And the SMTP service of the mail system can be restored to normal.
2) Next, set the email domain, and choose "Domain Name Settings"> "Domain Name management ". You can add a new domain name or edit an existing domain, as shown in. Finally, we can use "users and groups"-> "user management" to add or delete mailboxes.
4. send and receive Test
After the preceding settings are complete, we can send and receive emails on the web. Because winmail uses 6080 as the Web port number by default, we can directly open IE and enter http: // ip address: 6080 to access the Web mailbox, as shown in. Because the web-based operations and free email addresses such as 163 are the same, we will not talk about them here. In addition, we noticed that the IP address of the local machine can be seen in the lower right corner of the webpage, which will be used in the following article.