WebMail : RoundCube
2014/09/29
|
Install RoundCube to configure web-based mail transfer system like yahoo mail or hotmail. This example uses servers below for configuration of RoundCube.
www.server.world
- RoundCube installed Web Server
mail.server.world
- SMTP/IMAP Server
| |
[1] | |
[2] | |
[3] | |
[4] | |
[5] | |
[6] | Create a Database for RoundCube. |
[root@www ~]#
mysql -u root -p
Enter password: Welcome to the MariaDB monitor. Commands end with ; or \g. Your MariaDB connection id is 3 Server version: 5.5.37-MariaDB MariaDB Server Copyright (c) 2000, 2014, Oracle, Monty Program Ab and others. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
# create "roundcube" database ( set your own password for 'password' section )
MariaDB [(none)]>
create database roundcube;
Query OK, 1 row affected (0.00 sec)
MariaDB [(none)]>
grant all privileges on roundcube.* to roundcube@'localhost' identified by 'password';
Query OK, 0 rows affected (0.00 sec)
MariaDB [(none)]>
MariaDB [(none)]>
flush privileges;
Query OK, 0 rows affected (0.00 sec)
exit
Bye |
[7] | Install RoundCube. |
[root@www ~]#
cd /usr/share/roundcubemail/SQL
[root@www SQL]#
mysql -u roundcube -p < mysql.initial.sql
Enter password:
# MariaDB roundcube password
[root@www SQL]#
[root@www ~]#
cp -p /etc/roundcubemail/defaults.inc.php /etc/roundcubemail/config.inc.php
[root@www ~]#
vi /etc/roundcubemail/config.inc.php
# line 27: change like follows ( replace your password for 'password' )
$config['db_dsnw'] = 'mysql://roundcube:
password
@localhost/
roundcube
';
# line 117: specify IMAP server (SSL)
$config['default_host'] = '
ssl://mail.server.world
';
# line 120: specify IMAP port (SSL)
$config['default_port'] =
993
;
# line 206: specify SMTP server (SSL)
$config['smtp_server'] = '
ssl://mail.server.world
';
# line 210: specify SMTP port (SSL)
$config['smtp_port'] =
465
;
# line 214: change ( use the same user for SMTP auth and IMAP auth )
$config['smtp_user'] = '
%u
';
# line 218: change ( use the same password for SMTP auth and IMAP auth )
$config['smtp_pass'] = '
%p
';
# line 222: change ( SMTP auth type )
$config['smtp_auth_type'] = '
LOGIN
';
# line 234: specify SMTP HELO host
$config['smtp_helo_host'] = '
mail.server.world
';
# line 404: specify your domain name
$config['mail_domain'] = '
server.world
';
# line 422: change title
$config['product_name'] = '
Server World Webmail
';
# line 425: change UserAgent
$config['useragent'] = '
Server World Webmail
';
# line 531: change to your lang
$config['language'] =
ja_JP
;
# line 873: change default char-set to your lang
$config['default_charset'] = '
iso-2022-jp
';
[root@www ~]#
vi/etc/httpd/conf.d/roundcubemail.conf
# line 14: IP address you permit to access
Require ip 10.0.0.0/24
systemctl restart httpd
|
[8] | Access to 'http://(your server's hostname or IP address/)/roundcubemail/', then follwing screen is shown, authenticate with a user and his password to login. |
[9] | Just logined. |
Nenhum comentário:
Postar um comentário