banner



How To Install Roundcube On Windows

In Parts 1 through 3 of this Postfix serial we explained, step by step, how to set up and configure an electronic mail server with virtual users. We also showed you how to access one of those accounts using Thunderbird as electronic mail client.

  1. Setting Upwards Postfix Mail Server and Dovecot with MariaDB – Part 1
  2. Configure Postfix and Dovecot Virtual Domain Users – Part two
  3. Install and Integrate ClamAV and SpamAssassin to Postfix Mail Server – Office three

In this era of connectivity when yous are likely to need access to your inbox from anywhere (and not just from your dwelling house computer), server-side software known as webmail clients make it possible for yous to read and transport emails through a web interface.

Install RoundCube Webmail for Postfix on CentOS
Install RoundCube Webmail for Postfix Mail Server – Function 4

Roundcube is one of such programs, and given its many features (which y'all can read more most in the project's website) it is the one we have called to employ in this tutorial.

Install Roundcube Webmail for Postfix

In CentOS 7 and based distributions such as RHEL and Fedora, installing Roundcube is as easy as doing:

# yum update && yum install roundcubemail        

Note: Delight keep in listen that Roundcube is included in the EPEL repository, which we must have already enabled as outlined in Part 1.

In Debian 8 and its derivatives such as Ubuntu and Mint, y'all will need to enable the Jessie backports (web) outset:

# repeat "deb http://http.debian.net/debian jessie-backports main" >> /etc/apt/sources.listing        

Then install Roundcube as follows:

# bent update && aptitude install roundcube        

Regardless of the distribution nosotros're using, we at present demand to create a database to store Roundcube's internal structure.

In Debian 8, the installation process will have intendance of this:

Choose Yes when prompted whether y'all desire to configure the Roundcube database using dbconfig-common:

Configure Roundcube Webmail Database
Configure Roundcube Webmail Database

Cull mysql every bit database type:

Select Roundcube Database Type
Select Roundcube Database Type

Provide the password for the MariaDB root user:

Set Roundcube Database Password
Ready Roundcube Database Password

And cull a password for roundcube to register with the database server, so click Ok:

Register RoundCube with Database
Register RoundCube with Database

Confirm the password you entered during the previous pace:

Confirm Roundcube Database Password
Confirm Roundcube Database Password

And presently, you lot volition have a database named roundcube and its corresponding tables created automatically for you lot:

MariaDB [(none)]> Apply roundcube; MariaDB [(none)]> Bear witness TABLES;        
Check Roundcube Database Tables
Check Roundcube Database Tables

In CentOS 7, you will demand to create the database manually by either logging on to phpMyAdmin or via the command line. For brevity, we volition use the second proposed method here:

# mysql -u root -p MariaDB [(none)]> CREATE DATABASE RoundCube_db;        

Then exit the MariaDB prompt and run the following SQL script:

# mysql -u root -p RoundCube_db < /usr/share/roundcubemail/SQL/mysql.initial.sql        

Please notation that in Debian y'all tin as well perform these steps manually. Thus, yous get to rename your database if you want to instead of having it named automatically "roundcube" as seen before.

Configure Roundcube for Postfix

To begin, you should note that from RoundCube v1.0 and onwards, the configuration settings are included in one file only, equally opposed to previous versions where they were divide between 2 files.

Starting time, locate the following file and brand a re-create named config.inc.php in the aforementioned directory. Use the -p choice to preserve fashion, ownership, and original timestamp:

# cp -p /etc/roundcubemail/defaults.inc.php /etc/roundcubemail/config.inc.php        

Next, make certain Roundcube can access the database we created previously. In db_dsnw, replace user and password with an username and password with permissions to admission the RoundCube_db.

For example, you could use the same administrative business relationship you lot utilized to log on to phpMyAdmin in Part 1, or you can just use root if y'all want.

$config['db_dsnw'] = 'mysql://user:[electronic mail protected]/RoundCube_db';        

The following settings refer to the hostname, ports, authentication type, and so on (they are self-explanatory, just you can find more details by reading the comments in the configuration file):

config.inc.php

$config['default_host'] = 'ssl://mail.linuxnewz.com'; $config['default_port'] = 143; $config['smtp_server'] = 'tls://mail service.linuxnewz.com'; $config['smtp_port'] = 587; $config['smtp_user'] = '%u'; $config['smtp_pass'] = '%p'; $config['smtp_auth_type'] = 'LOGIN';        

These last 2 settings (product_name and useragent) refer to the header in the web interface and to the email headers sent with the messages.

$config['product_name'] = 'Linuxnewz Webmail - Powered by Roundcube'; $config['useragent'] = 'Linuxnewz Webmail';        

In order for Roundcube to use virtual user'southward authentication for approachable mail, we need to activate the virtuser_query plugin (which can exist found in /usr/share/roundcubemail/plugins):

$config['plugins'] = array('virtuser_query'); $config['virtuser_query'] = "SELECT E-mail FROM EmailServer_db.Users_tbl WHERE Email = '%u'";        

Note how the SQL query above points to the EmailServer_db database we gear up initially in Office i, which is where the information about the virtual users is stored.

Finally, similarly to what nosotros did in Part ane to exist able to access phpMyAdmin's spider web interface using a spider web browser, permit's dive into the Roundcube / Apache configuration file at:

# half dozen /etc/httpd/conf.d/roundcubemail.conf # CentOS 7 # nano /etc/roundcube/apache.conf # Debian eight        

And identify the post-obit lines inside the indicated tags:

Debian 8:

<IfVersion >= 2.3>      Require ip AAA.BBB.CCC.DDD      Require all granted  </IfVersion>        

CentOS seven:

<IfModule mod_authz_core.c>      # Apache 2.4      Require ip AAA.BBB.CCC.DDD      Require all granted  </IfModule>        

Though not strictly required, it's a good thought to change the alias of the Roundcube directory in lodge to protect yourself from bots that target /roundcube as a well-known door to interruption into your system. Feel free to choose an alias that suits your needs (we will go with webmail here):

Allonym /webmail /usr/share/roundcubemail # CentOS 7 Alias /webmail /var/lib/roundcube # Debian eight        

Save changes, go out the configuration file and restart Apache:

# systemctl restart httpd # CentOS 7 # systemctl restart apache2 # Debian 8        

Now you tin open a web browser and indicate information technology to https://mail.yourdomain.com/webmail and yous should encounter something like to:

Roundcube Webmail Login
Roundcube Webmail Login

You tin can now log on with i of the accounts we configured in the previous articles and outset sending and receiving emails using Roundcube from anywhere!

Customizing Roundcube Webmail

Fortunately, Roundcube's interface is fairly intuitive and easy to configure. At this indicate, you could spend some 15-30 minutes configuring the environs and becoming familiar with it. Become to Settings for more details:

Customizing Roundcube Webmail
Customizing Roundcube Webmail

Please notation that the in a higher place paradigm shows the emails that nosotros have received in this account ([electronic mail protected]).

You tin click Compose and start writing an email to an external email address:

Compose Mail in Roundcube Webmail
Compose Mail in Roundcube Webmail

Then hit Transport and check the destination to come across if it arrived correctly:

Confirm Postfix Mail Delivery
Confirm Postfix Mail Delivery

Congratulations! You have successfully setup Roundcube to send and receive emails!

Summary

In this article we accept explained how to setup and configure Roundcube equally web customer. As you lot explore Roundcube's interface you lot will see how like shooting fish in a barrel it is to use, as described in the Webmail assistance.

Yet, don't hesitate to let us know if you have any questions or concerns – just drop usa a note using the annotate form beneath. Nosotros look forwards to hearing from you!

If You lot Appreciate What We Do Here On TecMint, You Should Consider:

TecMint is the fastest growing and almost trusted customs site for any kind of Linux Articles, Guides and Books on the web. Millions of people visit TecMint! to search or scan the thousands of published articles available FREELY to all.

If you similar what you are reading, please consider buying us a coffee ( or 2 ) as a token of appreciation.

Support Us

We are thankful for your never ending support.

Source: https://www.tecmint.com/install-and-configure-roundcube-webmail-for-postfix-mail-server/

Posted by: kindigthesne.blogspot.com

0 Response to "How To Install Roundcube On Windows"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel