Postfix-webmail installation, postfix-webmail

Source: Internet
Author: User
Tags roundcube roundcube webmail

Postfix-webmail installation, postfix-webmail

Extmail is a WebMail program with powerful functions. This article introduces a more user-friendly WebMail program roundcube.

1. Download and install roundcube

cd /server/tools/wget -xf roundcubemail-1.1.4-complete.tar.gzmv roundcubemail-1.1.4 /var/www/html/webmail/chown -R postfix.postfix /var/www/html/webmail/chgrp -R postfix /var/lib/php/session/ll /var/www/html/webmail/ll /var/lib/php/session/ -d

2. Upgrade and install php-related modules

pear channel-update pear.php.netpear install Auth_SASL Net_SMTP Net_IDNA2-0.1.1 Mail_Mime

Modify the time zone configuration in php. ini.

vim /etc/php.ini +889
date.timezone = Asia/Chongqing

3. Configure the webmail virtual host and configure domain name resolution.

vim /etc/httpd/conf.d/webmail.conf
<VirtualHost *:80>   ServerName   DocumentRoot /var/www/html/webmail</VirtualHost>

Restart apache after configuration is complete

service httpd restart

4. Configure roundcube webmail on the webpage

4. 1. Open the Web

Check and confirm the following configurations:

PHP version, database type, etc.

Other configuration items must be OK.

. Generate the webmail configuration file

# In the General configuration area, you only need to configure the project name

In the Logging & Debugging log area, you can configure

In the Database setup Database Configuration area, configure the previous extmail Database. db_prefix: configure the prefix of the table to be generated.

In the IMAP Settings area, you must configure the address, port, and domain name of the email server.

In the SMTP Settings area, you do not need to configure the address, port, and account and password of the email server.


In the Display settings & user prefs area, you must configure the Supported languages.

In the Plugins area, you do not need to configure

After the preceding configurations are complete, click "create config" to generate the webmail configuration file.

After the configuration is generated, it does not jump to the next page, but returns to the top of the page. The same result indicates that the configuration file is correctly generated. Click "continue, go to the next page for the final test


Click the button in the figure to initialize the database. The following result is displayed.


Test the email sending. the following result indicates that the email can be sent normally.

Check email client login status

At this point, the configuration of the webmail end is complete, but the most important thing is:

For those familiar with the roundcube system, the directory for generating configuration files during initialization is clear. To prevent other people from generating configuration files maliciously or incorrectly, you need to adjust the file directory

Similarly, developers have come up with a striking reminder at the bottom of the page.



cd /var/www/html/webmail/mv installer/ installer.ori

Of course, you can also delete the directory to block the problem.

The configuration file generated above is:

If the configuration is incorrect or you want to reconfigure

Delete the configuration file, restore the installer directory, restart the Apache service, and re-open the web page for configuration.

Back to question

5. log on to WebMail


Enter the previously configured email user to log on.


Therefore, you can explore the specific mailbox functions by yourself. You can also modify the line selection configured on the previous webpage on the browser.

Complete, heheh

Related Article

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: 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.