Fedora 14
Sponsored Link

Web Mail - RoundCube2010/11/07

  Install RoundCube to build web-based mail transfer system like yahoo mail or hotmail. SMTP/IMAP server is needed to run in your LAN. And also MySQL Server is required. (or SQLite, PostgreSQL)
This example uses servers below for configuration of RoundCube.

www03.srv.world
- RoundCube server

mail03.srv.world
- SMTP/IMAP server


[1] Install RoundCube
[root@www03 ~]#
yum -y install roundcubemail


[root@www03 ~]#
mysql -u root -p
# login to MySQL

Enter password:
Welcome to the MySQL monitor. Commands end with ; or g.
Your MySQL connection id is 4 to server version: 5.0.22

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

# create 'roundcube' database ( set any password for 'password' )

mysql>
create database roundcube character set utf8 collate utf8_bin;

Query OK, 1 row affected (0.00 sec)
mysql>
grant all privileges on roundcube.* to roundcube identified by 'password';

Query OK, 0 rows affected (0.00 sec)
mysql>
exit

Bye

[root@www03 ~]#
cd /usr/share/doc/roundcubemail-0.3.1/SQL

[root@www03 SQL]#
mysql -u roundcube -p roundcube < mysql.initial.sql

Enter password:
[root@www03 SQL]#
[root@www03 ~]#
vi /etc/roundcubemail/db.inc.php


# line 21: change like follows ( replace your password for 'password' )

$rcmail_config['db_dsnw'] = 'mysql://roundcube:
password
@localhost/
roundcube
';

[root@www03 ~]#
vi /etc/roundcubemail/main.inc.php


# line 66: specify IMAP server (SSL)

$rcmail_config['default_host'] = '
ssl://mail03.srv.world
';

# line 69: specify IMAP port (SSL)

$rcmail_config['default_port'] =
993
;

# line 87: specify domain name

$rcmail_config['mail_domain'] = '
srv.world
';

# line 102: specify SMTP server (SSL)

$rcmail_config['smtp_server'] = '
ssl://mail03.srv.world
';

# line 105: specify SMTP port (SSL)

$rcmail_config['smtp_port'] =
465
;

# line 109: change ( use the same user for SMTP auth and IMAP auth )

$rcmail_config['smtp_user'] = '
%u
';

# line 113: change ( use the same password for SMTP auth and IMAP auth )

$rcmail_config['smtp_pass'] = '
%p
';

# line 123: specify SMTP HELO host

$rcmail_config['smtp_helo_host'] = '
mail03.srv.world
';

# line 168: change to your language

$rcmail_config['language'] =
ja_JP
;

# line 180: change UserAgent

$rcmail_config['useragent'] = '
Server World Webmail
';

# line 183: change title

$rcmail_config['product_name'] = '
Server World Webmail
';

# line 218: change default charaset

$rcmail_config['default_charset'] = '
iso-2022-jp
';

[root@www03 ~]#
vi /etc/httpd/conf.d/roundcubemail.conf


# line 5: change

Alias
/roundcube
/usr/share/roundcubemail

<Directory /usr/share/roundcubemail/>
Order Deny,Allow

Deny from all

Allow from 127.0.0.1
10.0.0.0/24
# IP address you allow

</Directory>

[root@www03 ~]#
/etc/rc.d/init.d/httpd restart

Stopping httpd:
[ OK ]

Starting httpd:
[ OK ]

[2] Access to 'http://(your server's name or IP address/)/roundcube/', then follwing sacreen is shown, then authenticate your user name and password to login.
[3] Just logined
Matched Content