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 http://jaist.dl.sourceforge.net/project/roundcubemail/roundcubemail/1.1.4/roundcubemail-1.1.4-complete.tar.gztar -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.
<VirtualHost *:80> ServerName webmail.zuiyoujie.com 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 http://webmail.zuiyoujie.com/installer/index.php
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.