From CDOT Wiki
Correcting web-configuration settings.
::If your machine does not have the semage command, use yum to install the policycoreutils-python package.
<li>You will also need to tell selinux to allow the webserver to open connections to the MTAs with <source>setsebool -P httpd_can_network_connect 1</source></li>
<li>In the directory now named "webmail", there will be a file named '''INSTALL''' which will walk you through the rest of the Roundcube installation.</li> <li>To make things easier,
install RoundCube through your local web browser.</li>
::* Go onto your host, open Firefox and on the address bar type "vm1.<yourSenecaID>.ops/webmail/installer", make sure your dns on host can resolve the web address. Alternatively, instead of "vm1.<yourSenecaID>.ops" you can input the ip address of your vm1, "192.168.X.2/webmail/installer", change X to your own IP octet.
::* Inside the web browser installer, ensure all required options are "ok", if "DOM: not ok" it means you need to install additional php packages (yum install
policycoreutils-python php-xml php-mbstring). Once everything is ready (it will not let you continue otherwise) click next go to the next page.
::* On the next page, insert "vm3.<yourSenecaID>.ops" under the '''imap settings''' '''default_host''' field and "143" in '''default_port''' field. Insert "vm2.<yourSenecaID>.ops" under '''smtp settings''' '''smtp_server''' field, and "25" in '''smtp_port''' field.
::* Under '''Database setup''' '''db_dsnw''', enter "localhost" as your database server, "
name of your database you created" for database name , or just use a default created one, such as "mysql". Put " root" as Database user, and your own password for database password (the password you use to login to mysql as root). Everything else can be left as default.
::* Click next to create the configuration file, then download it to your host. By default it will be saved under "~SenecaID/Downloads". Transfer the files to vm1 using scp and place it inside /var/www/html/webmail/config folder.
::* Go to test config page if you are not there already and "Check config file" should be ok. "Check DB config" should also be ok, if not check your mysql settings.
::* Finally test your configuration by sending email using your smtp server through test field provided by webmail installer, you should receive a test email
send by RoundCube. Test your IMAP settings by simply login with your SenecaID and vm3 password on the same webpage. ::* If everything works properly you can skip to step 11. *Remember you can edit the configuration file manually (such as step 11) by editing "/var/www/html/webmail/config/config.inc.php" Remember to restart httpd for the effect to take place. <br /><br />Some installation tips to consider: ::* Be careful about copying & pasting the MySQL setup part: take time and pay attention to detail: do not try to "rush it". ::* You will need to install additional Apache modules including: '''php-xml''' and '''php-mbstring'''. ::* Don't forget to set the password in the roundcube configuration.
<li>Note that both of your IMAP and SMTP servers are on different machines (i.e. not on vm1). Therefore, you
will need to set the following options for Roundcube:
You should be able to test the configuration in your Roundcube installer after completing Step 3. Once it is able to contact both servers, test if the roundcube webmail application is working by logging on, then sending and receiving e-mail messages .
*Using a webbrowser, navigate to vm1.<yourdomain>.ops/webmail and login.
*Use the interface provided to send and receive email.</li>