Changes

Jump to: navigation, search

OPS335 Lab 6

198 bytes removed, 15:24, 10 October 2018
m
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.<br /><br />Some installation tips to consider:::* Be careful about copying &amp; 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> <li>To make things easier, install RoundCube has a well configured installation page available through your local web browser(You will see a note about it in the '''INSTALL''' file).</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 createdroundcubemail" for database name, or just use a default created one, such as "mysql". Put "rootroundcube" as Database user, and your own the password you set for the roundcube user when you configured that in the previous steps 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.
::* Enter "restorecon -v /var/www/html/webmail/config/config.inc.php" Restart httpd and refresh the web installer page.
::* 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 sent by RoundCube. Test your IMAP settings by simply login loging in with your SenecaID and vm3 password on the same webpage. ::* If everything works properly you can skip to step 1110. *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 &amp; 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>
<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 should see custom values in the following options for parameters in the Roundcubeconfiguration file:
::* '''$config['smtp_server']'''
</li>
<li>You should be able to test the configuration in your Now that you have Roundcube installer after completing Step 3. Once installed it is able time 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>
932
edits

Navigation menu