#  yum  install  mysql-server*  httpd*  roundcubemail*                         [EPEL Repo]

—————————————-

Configure Mysql database

—————————————-

#  service  mysqld  start

#  mysqladmin  –u  root  password  [give password]

#  mysql  –u  root  -p

mysql>  create  database  rcmail  character  set  utf8  collate  utf8_bin;

mysql>  grant  all  privileges  on  rcmail.*  to  rcadmin@localhost  identified  by  ‘[db_password]’;

mysql>  flush  privileges;

mysql>  exit

#  cd  /usr/share/doc/roundcubemail-*/SQL/

#  mysql  -u  rcadmin  -p  rcmail  <  mysql.initial.sql 

—————————————–

Roundcube Configuration

—————————————–

#  vim  /etc/roundcubemail/db.inc.php

Edit line 21:

$rcmail_config[‘db_dsnw’] = ‘mysql://rcadmin:123456789@localhost/rcmail’;

123456789 is the db_password given above.

Save and quit.

#  vim  /etc/roundcubemail/main.inc.php

Line 72 & 75:

$rcmail_config[‘default_host’] = ‘abc.com’;

$rcmail_config[‘default_port’] = 143;

Line 135, 138, 142, 146, 150, 162:

$rcmail_config[‘smtp_server’]  =  ‘abc.com’;

$rcmail_config[‘smtp_port’]  =  25;

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

$rcmail_config[‘smtp_pass’]  =  ‘%p’;

$rcmail_config[‘smtp_auth_type’]  =  ‘LOGIN’;

$rcmail_config[‘smtp_helo_host’]  =  ‘abc.com’;

Line 198:

$rcmail_config[‘login_autocomplete’]  =  1;

Save & quit.

———————————

httpd  Configuration

———————————

#  vim  /etc/httpd/conf.d/roundcubemail.conf

Alias /rcmail /usr/share/roundcubemail

<Directory /usr/share/roundcubemail/>

        Order Deny,Allow

        Deny from all

        Allow from 127.0.0.1 192.168.7.0/24             [IP range allowed by you]

</Directory>

#  service  httpd  start

Open Firefox and access http://abc.com/rcmail. You can also https.

Advertisements