Webmail Roundcube installation configuration basic tutorial

  
 

Configure the contents of the LAMP server in preparation for installing Roundcube. RoundCube is a browser-based, multi-language IMAP client that looks like a desktop application. It provides all the features an email client should have including MIME support, address book, folder operations, information search, and spell checking. RoundCube is developed with PHP
+Ajax and requires a MySQL database to store data. The user interface is designed with XHTML+CSS2, so you must first configure a LAMP server.

1. Configure the web server

Please refer to the LAMP architecture.

2. Install Roundcubemail

Download the latest version from Roundcubemail's official homepage:

http://roundcube.net/download, the latest version is roundcubemail-0.3-stable .tar.gz

Unzip the RoundCube and upload it to the specified path and make sure that the /temp and /logs directories have network access:

tar zxvf roundcubemail-0.3-stable.tar .gz

mv roundcubemail-0.3-stable /var/www/html/webmail

At this point, you can open http://localhost/webmail through your browser, and the system will prompt an error. :

CONFIGURATION ERROR

main.inc.php was not found.

db.inc.php was not found.

Please read the INSTALL instructions !

3. Importing Roundcubemail's database

mysql -u root -p

Enter password:

mysql>

Creating a database :roundcubemail

mysql> CREATE DATABASE roundcubemail DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;

Provide database permissions to MySQL local users: bianjiesky, ‘your_passwd’ Password:

mysql> GRANT ALL PRIVILEGES ON roundcubemail.* TO bianjiesky@localhost IDENTIFIED BY ‘your_passwd’;

Import database table:

mysql> use roundcubemail;< Br>

mysql> source /var/www/html/webmail/SQL/mysql.initial.sql

mysql> flush privileges;

mysql> exit

4. Set database information for Roundcubemail

cd /var/www/html/webmail/config/

cp db.inc.php.dist db.inc.php

Cp main.inc.php.dist main.inc.php

First, set the value of db_dsnw in the db.inc.php file to:

Modify the file: nano /var/www/Html/webmail/config/db.inc.php

$rcmail_config[‘db_dsnw’] = ‘mysql://roundcube:your_passwd@localhost/roundcubemail’;

where roundcube is modified Change the database local user name bianjiesky ;your_passwd to the access password you set; roundcubemail is the database name created above.

Then, configure the main.inc.php file:

nano /var/www/html/webmail/config/main.inc.php

# Default IMAP Server The Mail Server used in this example is the Zimbra server IP.

$rcmail_config[‘default_host’] = ‘127.0.0.1’;

# Default SMTP Server

$rcmail_config[‘smtp_server’] = &lsquo ;127.0.0.1’;

$rcmail_config[‘smtp_user’] = ‘%u’;

$rcmail_config[‘smtp_pass’] = ‘%p’;< Br>

# Automatically create a directory

$rcmail_config[‘create_default_folders’] = TRUE;

# Default domain name

# Users only need to log in Enter ‘username’, Roundcubemail will automatically add the domain name specified in

# ‘username_domain’, so the username will become: ’[email protected]’.

#$rcmail_config[‘username_domain’] = ‘example.org’;

# The default interface language. The optional values ​​can be found in this directory. The directory name is an optional value:

Copyright © Windows knowledge All Rights Reserved