Deploying the Postfix Messaging System (iii) building a Web mail system

Source: Internet
Author: User
Tags character set config imap mail dovecot squirrelmail

The Web mail system is the use of Web pages to send and receive mail, because the use of Web pages to send and accept messages do not need to be preconfigured, direct login to the Web page can send and receive mail, so it is convenient to use. There are a number of postfix supported Web mail systems, such as: Openwebmail, Igenus, Extmail, SquirrelMail, and so on.

Today we are using SquirrelMail to deploy the Web mail system, SquirrelMail is a set of Web programs developed using PHP that can be compatible with Postfix, Dovecot. (Note: Before installing SquirrelMail, you need to install Postfix and Dovecot, how to install Postfix please refer to http://cshbk.blog.51cto.com/5685776/1218671 Installation Dovecot please refer to http://cshbk.blog.51cto.com/5685776/1218724)

1. Download and deploy the SquirrelMail package

We can download the latest source package from SquirrelMail's official website http://www.squirrelmail.org.

I will download the good squirrelmail-1.4.22.tar.gz and zh_cn-1.4.22-20110426.tar.gz after decompression, copy it to the site directory, its deployment location depends on the access path, should be determined according to the actual situation.

2, create the data directory, attachment directory.

When you access a Web mailbox through a browser, you need to submit the content of the message, upload attachments, and so on, so you need to create the appropriate data directory, the attachment directory, and ensure that the Web site running users (such as daemon) have write access to the above directory.

3, create the main configuration file config.php

The squirrelmail main configuration file is config.php, located in the subdirectory config/. The primary configuration file does not usually exist and needs to be manually created by reference to the default configuration. Modify the configuration file appropriately, set the interface language, send and receive server address, Data directory and additional directory and other related information.

[Root@localhost Webmail] #cp config/config_default.php config/config.php

[Root@localhost Webmail] #vim config/config.php

<?php

.../omit part of the content

$domain = ' cshbk.com ';

$smtpServerAddress = ' localhost '; SMTP server address

$smtpPort = 25; SMTP Service port

$imapServerAddress = ' localhost '; IMAP server address

$imapPort = 143; IMAP service ports

$imap _server_type= ' Dovecot '; Using the type of IMAP

$data _dir= '/usr/local/httpd/htdocs/webmail/data/'; Location of the Data directory

$attachment _dir= '/usr/local/httpd/htdocs/webmail/attach '; Location of the attachment directory

$squirrelmail _default_language= ' ZH_CN '; Interface language

$default _charset= ' ZH_CN.               UTF-8 '; Default Character Set

In the above configuration, the address and port of the transceiver server are generally default (if your mail server and Web server are not on the same server, you will need to specify the address of the mail server). The main is to modify the data directory and the path of additional directories, as well as supporting the Chinese language. (Note: In the configuration file, each configuration must be preceded by a semicolon ";")

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.