{"id":1613,"date":"2018-12-09T00:24:02","date_gmt":"2018-12-08T21:24:02","guid":{"rendered":"http:\/\/kifarunix.com\/?p=1613"},"modified":"2024-03-11T21:48:48","modified_gmt":"2024-03-11T18:48:48","slug":"how-to-install-and-setup-roundcube-webmail-on-debain","status":"publish","type":"post","link":"https:\/\/kifarunix.com\/how-to-install-and-setup-roundcube-webmail-on-debain\/","title":{"rendered":"Install and Setup Roundcube Webmail on Debian 12\/11\/10"},"content":{"rendered":"\n<p>In this tutorial, you will learn how to install and setup Roundcube webmail on Debian 12\/11\/10. <a href=\"https:\/\/roundcube.net\/\" target=\"_blank\" rel=\"noopener noreferrer\">Roundcube<\/a> webmail is a free and open source web-based IMAP email client. It is written in PHP and works just like any other email client.<\/p>\n\n\n\n<div class=\"wp-block-rank-math-toc-block\" id=\"rank-math-toc\"><h2>Table of Contents<\/h2><nav><ul><li><a href=\"#installing-roundcube-webmail-on-debian-12-11-10\">Installing Roundcube Webmail on Debian 12\/11\/10<\/a><ul><li><a href=\"#what-are-the-features-provided-by-roundcube\">What are the Features Provided by Roundcube<\/a><\/li><li><a href=\"#prerequisites-for-running-roundcube\">Prerequisites for Running Roundcube<\/a><ul><li><a href=\"#install-apache-web-server\">Install Apache Web Server<\/a><\/li><li><a href=\"#install-my-sql-maria-db-on-debian-12-11-10\">Install MySQL\/MariaDB on Debian 12\/11\/10<\/a><\/li><li><a href=\"#install-php-8-on-debian-12-11-10\">Install PHP 8 on Debian 12\/11\/10<\/a><\/li><\/ul><\/li><li><a href=\"#install-roundcube-webmail-on-debian-12-11-10\">Install Roundcube Webmail on Debian 12\/11\/10<\/a><ul><li><a href=\"#run-system-package-cache-update\">Run System Package Cache Update<\/a><\/li><li><a href=\"#download-roundcube\">Download Roundcube<\/a><\/li><li><a href=\"#extract-roundcube-package-archive-to-webroot-directory\">Extract Roundcube Package Archive to Webroot Directory<\/a><\/li><\/ul><\/li><li><a href=\"#configure-apache-for-roundcube\">Configure Apache for Roundcube<\/a><\/li><li><a href=\"#database-configuration\">Database Configuration<\/a><\/li><li><a href=\"#configure-php\">Configure PHP<\/a><\/li><li><a href=\"#configure-roundcube-on-debian-12-11-10\">Configure Roundcube on Debian 12\/11\/10<\/a><\/li><li><a href=\"#accessing-roundcube-web-interface\">Accessing Roundcube Web Interface<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"installing-roundcube-webmail-on-debian-12-11-10\">Installing Roundcube Webmail on Debian 12\/11\/10<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"what-are-the-features-provided-by-roundcube\">What are the Features Provided by Roundcube<\/h3>\n\n\n\n<p>Roundcube webmail provides a handful of features;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Full support for MIME and HTML messages<\/li>\n\n\n\n<li>Sophisticated privacy protection<\/li>\n\n\n\n<li>Compose messages with attachments<\/li>\n\n\n\n<li>Multiple sender identities<\/li>\n\n\n\n<li>Full featured address book with groups and LDAP connectors<\/li>\n\n\n\n<li>Find-as-you-type address book integration<\/li>\n\n\n\n<li>Richtext\/HTML message composing<\/li>\n\n\n\n<li>Forwarding messages with attachments<\/li>\n\n\n\n<li>Searching messages and contacts<\/li>\n\n\n\n<li>Spell checking<\/li>\n<\/ul>\n\n\n\n<p>You can find comprehensive list of features of Roundcube <a href=\"https:\/\/roundcube.net\/about\/\" target=\"_blank\" rel=\"noopener noreferrer\">here<\/a>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"prerequisites-for-running-roundcube\">Prerequisites for Running Roundcube<\/h3>\n\n\n\n<p>As stated, Roundcube Webmail is written in PHP and thus it runs on a standard LAMPP server. The following are the minimum server requirements;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Apache, Lighttpd, Nginx, Cherokee or Hiawatha web server<\/li>\n\n\n\n<li>PHP Version 7.3 or greater<\/li>\n\n\n\n<li>MySQL, PostgreSQL, SQLite, MSSQL or Oracle database<\/li>\n\n\n\n<li>SMTP server and IMAP server with IMAP4 rev1 support<\/li>\n\n\n\n<li>PEAR packages distributed with Roundcube<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"install-apache-web-server\">Install Apache Web Server<\/h4>\n\n\n\n<p>In this tutorial, we are going to use Apache as our web server. Therefore, follow through to install and configure it.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">apt install apache2 libapache2-mod-php -y<\/pre>\n\n\n\n<p>Apache is started and enabled by default after installation.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>systemctl status apache2<\/code><\/pre>\n\n\n\n<p>If not running, then execute the command below to start and enable it to run on system boot;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>systemctl enable --now apache2<\/code><\/pre>\n\n\n\n<p>Roundcube supports various database backends as stated above. In this guide, we are going to use MySQL.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"install-my-sql-maria-db-on-debian-12-11-10\">Install MySQL\/MariaDB on Debian 12\/11\/10<\/h4>\n\n\n\n<p>MariaDB is available on default Debian repositories and can be installed as shown in this guide.<\/p>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/install-mariadb-10-on-debian-12\/\" target=\"_blank\" rel=\"noreferrer noopener\">Install MariaDB 10 on Debian 12<\/a><\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"install-php-8-on-debian-12-11-10\">Install PHP 8 on Debian 12\/11\/10<\/h4>\n\n\n\n<p>PHP is a server side scripting language that helps generate dynamic web content.<\/p>\n\n\n\n<p>Debian 12: To install PHP and all the requires dependencies for Roundcube, run the command below;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">apt install php php-mcrypt php-mysql php-gd php-xml \\\nphp-mbstring php-intl php-zip php-json php-pear \\\nphp-curl php-imagick openssl composer -y<\/pre>\n\n\n\n<p>On Debian 11 and Debian 10, use the guide below to install PHP 8.<\/p>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/install-php-8-on-debian-11\/\" target=\"_blank\" rel=\"noreferrer noopener\">Install PHP 8.0\/8.1\/8.2\/8.x on Debian 11\/Debian 10<\/a><\/p>\n\n\n\n<p>You can then install the required PHP 8 modules;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>apt install php php-{mcrypt,mysql,gd,xml,mbstring,intl,zip,json,pear,curl,imagick } openssl composer -y<\/code><\/pre>\n\n\n\n<p>On Debian 12\/11\/10, install PEAR packages<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pear channel-update pear.php.net<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">pear install Net_SMTP Net_IDNA2-0.1.1 Mail_mime Mail_mimeDecode<\/pre>\n\n\n\n<pre id=\"block-514398fd-a643-48a5-be80-3274a13700d7\" class=\"wp-block-preformatted\">pear install channel:\/\/pear.php.net\/Auth_SASL2-0.2.0<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"install-roundcube-webmail-on-debian-12-11-10\">Install Roundcube Webmail on Debian 12\/11\/10<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"run-system-package-cache-update\">Run System Package Cache Update<\/h4>\n\n\n\n<p>Before you can proceed with installation and configuration of Roundcube webmail on Debian12\/11\/10, update and upgrade your server packages;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">apt update<\/pre>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"download-roundcube\">Download Roundcube<\/h4>\n\n\n\n<p>As much as Roundcube could be available on the default Debian repositories, it is usually not upto date.<\/p>\n\n\n\n<p>For example, these are the available versions on Debian default repos as of this writing;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>apt-cache policy roundcube<\/code><\/pre>\n\n\n\n<p>Debian 12;<\/p>\n\n\n\n<pre class=\"scroll-sz\"><\/code>\nroundcube:\n  Installed: (none)\n  Candidate: 1.6.1+dfsg-1\n  Version table:\n     1.6.1+dfsg-1 500\n        500 http:\/\/deb.debian.org\/debian bookworm\/main amd64 Packages\n<\/code><\/pre>\n\n\n\n<p>Debian 11;<\/p>\n\n\n\n<pre class=\"scroll-sz\"><\/code>\nroundcube:\n  Installed: (none)\n  Candidate: 1.4.13+dfsg.1-1~deb11u1\n  Version table:\n     1.4.13+dfsg.1-1~deb11u1 500\n        500 http:\/\/deb.debian.org\/debian bullseye\/main amd64 Packages\n        500 http:\/\/security.debian.org\/debian-security bullseye-security\/main amd64 Packages\n<\/code><\/pre>\n\n\n\n<p>Debian 10;<\/p>\n\n\n\n<pre class=\"scroll-box\"><\/code>\nroundcube:\n  Installed: (none)\n  Candidate: 1.3.17+dfsg.1-1~deb10u2\n  Version table:\n     1.3.17+dfsg.1-1~deb10u2 500\n        500 http:\/\/deb.debian.org\/debian buster\/main amd64 Packages\n        500 http:\/\/security.debian.org\/debian-security buster\/updates\/main amd64 Packages\n\n<\/code><\/pre>\n\n\n\n<p>If the stable current release version is available, then by all means, install Roundcube using the APT package manager directly from repos.<\/p>\n\n\n\n<p>Otherwise, the latest stable release version for Roundcube can be installed by downloading the source code from the <a href=\"https:\/\/roundcube.net\/download\/\" target=\"_blank\" rel=\"noopener noreferrer\">Roundcube downloads page<\/a>. Download the <strong>Complete<\/strong> package under the <strong>Stable version <\/strong>section. Once you get the link, you can simply download it as shown below;<\/p>\n\n\n\n<p>Replace the value of the VER variable with the current release version number;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>VER=1.6.2<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">wget -P \/tmp\/ https:\/\/github.com\/roundcube\/roundcubemail\/releases\/download\/${VER}\/roundcubemail-${VER}-complete.tar.gz<\/pre>\n\n\n\n<p>You can calculate the SHA-256 hash value and compare with the value on the downloads page. Ensure the values match.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"extract-roundcube-package-archive-to-webroot-directory\">Extract Roundcube Package Archive to Webroot Directory<\/h4>\n\n\n\n<p>Extract the Roundcube tarball archive to the web root directory.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mkdir \/var\/www\/roundcube<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">tar xzf \/tmp\/roundcubemail-${VER}-complete.tar.gz \\\n-C \/var\/www\/roundcube --strip-components 1<\/pre>\n\n\n\n<p>You should now have Roundcube configs and directories under <strong><code>\/var\/www\/roundcube\/<\/code><\/strong>;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ls -1 \/var\/www\/roundcube\/<\/code><\/pre>\n\n\n\n<pre class=\"scroll-box\"><\/code>\nbin\nCHANGELOG.md\ncomposer.json\ncomposer.json-dist\ncomposer.lock\nconfig\nindex.php\nINSTALL\ninstaller\nLICENSE\nlogs\nplugins\nprogram\npublic_html\nREADME.md\nSECURITY.md\nskins\nSQL\ntemp\nUPGRADING\nvendor\n<\/code><\/pre>\n\n\n\n<p>Set proper ownership for roundcube root directory and permissions for Roundcube <code>\/temp<\/code> and <code>\/logs<\/code> directories;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">chown -R www-data:www-data \/var\/www\/roundcube\/<\/pre>\n\n\n\n<pre id=\"block-65b523ac-1444-4f84-9f5f-81310641f687\" class=\"wp-block-preformatted\">chmod -R 775 \/var\/www\/roundcube\/{temp,logs}<\/pre>\n\n\n\n<p>The&nbsp;<code>\/config<\/code>, <code>\/temp<\/code> and <code>\/logs<\/code> directories should be protected.<\/p>\n\n\n\n<p>If UFW is running, allow Apache2.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">ufw allow WWW<\/pre>\n\n\n\n<p>OR allows both HTTP and HTTPs<\/p>\n\n\n\n<pre id=\"block-027f8d41-bbaa-4618-a8d0-9f964ee374a1\" class=\"wp-block-preformatted\">ufw allow \"WWW Full\"  <\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"configure-apache-for-roundcube\">Configure Apache for Roundcube<\/h3>\n\n\n\n<p>Next, it is wise to create a dedicated Apache virtualhost configuration file for Roundcube instead of editing the default Apache configuration. To create one see below;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">vi \/etc\/apache2\/sites-available\/roundcube.conf<\/pre>\n\n\n\n<p>Update the content below and copy, and paste into the configuration file above.<\/p>\n\n\n\n<pre class=\"scroll-box\"><\/code>\n&lt;VirtualHost *:80&gt;\n        ServerName roundcube.kifarunix-demo.com\n        ServerAdmin webmaster@localhost\n        DocumentRoot \/var\/www\/roundcube\n\n\t&lt;Directory \/var\/www\/roundcube&gt;\n\t\tOptions +FollowSymLinks\n\t\tAddType text\/x-component .htc\n\t\t&lt;IfModule mod_php8.c&gt;\n\t\t\tphp_flag        display_errors  Off\n\t\t\tphp_flag        log_errors      On\n\t\t\tphp_value       upload_max_filesize     10M\n\t\t\tphp_value       post_max_size           12M\n\t\t\tphp_value       memory_limit            64M\n\t\t\tphp_flag        zlib.output_compression         Off\n\t\t\tphp_flag        magic_quotes_gpc                Off\n\t\t\tphp_flag        magic_quotes_runtime            Off\n\t\t\tphp_flag        zend.ze1_compatibility_mode     Off\n\t\t\tphp_flag        suhosin.session.encrypt         Off\n\t\t\tphp_flag        session.auto_start      Off\n\t\t\tphp_value       session.gc_maxlifetime  21600\n\t\t\tphp_value       session.gc_divisor      500\n\t\t\tphp_value       session.gc_probability  1\n\t\t&lt;\/IfModule&gt;\n\t\t&lt;IfModule mod_rewrite.c&gt;\n\t\t\tRewriteEngine On\n\t\t\tRewriteRule ^favicon\\.ico$ skins\/larry\/images\/favicon.ico\n\t\t\tRewriteRule ^(?!installer)(\\.?[^\\.]+)$ - [F]\n\t\t\tRewriteRule ^\/?(\\.git|\\.tx|SQL|bin|config|logs|temp|tests|program\\\/(include|lib|localization|steps)) - [F]\n\t\t\tRewriteRule \/?(README\\.md|composer\\.json-dist|composer\\.json|package\\.xml)$ - [F]\n\t\t&lt;\/IfModule&gt;\n\t\t&lt;IfModule mod_deflate.c&gt;\n\t\t\tSetOutputFilter DEFLATE\n\t\t&lt;\/IfModule&gt;\n\t\t&lt;IfModule mod_headers.c&gt;\n\t\t\t# replace 'append' with 'merge' for Apache version 2.2.9 and later\n\t\t\t# Header append Cache-Control public env=!NO_CACHE\n\t\t&lt;\/IfModule&gt;\n\t\t&lt;IfModule mod_expires.c&gt;\n\t\t\tExpiresActive On\n\t\t\tExpiresDefault \"access plus 1 month\"\n\t\t&lt;\/IfModule&gt;\n\t\tFileETag MTime Size\n\t\t&lt;IfModule mod_autoindex.c&gt;\n\t\t\tOptions -Indexes\n\t\t&lt;\/ifModule&gt;\n\t\tAllowOverride None\n\t\tOrder allow,deny\n\t\tAllow from all\n\t&lt;\/Directory&gt;\n\t\n\t&lt;Directory \/var\/www\/roundcube\/plugins\/enigma\/home&gt;\n\t\tOptions -FollowSymLinks\n\t\tAllowOverride None\n\t\tOrder allow,deny\n\t\tDeny from all\n\t&lt;\/Directory&gt;\n\t&lt;Directory \/var\/www\/roundcube\/config&gt;\n\t\tOptions -FollowSymLinks\n\t\tAllowOverride None\n\t\tOrder allow,deny\n\t\tDeny from all\n\t&lt;\/Directory&gt;\n\t&lt;Directory \/var\/www\/roundcube\/temp&gt;\n\t\tOptions -FollowSymLinks\n\t\tAllowOverride None\n\t\tOrder allow,deny\n\t\tDeny from all\n\t&lt;\/Directory&gt;\n\t&lt;Directory \/var\/www\/roundcube\/logs&gt;\n\t\tOptions -FollowSymLinks\n\t\tAllowOverride None\n\t\tOrder allow,deny\n\t\tDeny from all\n\t&lt;\/Directory&gt;\n        ErrorLog ${APACHE_LOG_DIR}\/roundcube-error.log\n        CustomLog ${APACHE_LOG_DIR}\/roundcube-access.log combined\n&lt;\/VirtualHost&gt;\n<\/code><\/pre>\n\n\n\n<p>Save and quit the configuration file.<\/p>\n\n\n\n<p>Verify syntactical errors in Rouncube site configuration.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">apachectl -t<\/pre>\n\n\n\n<p>Ensure output is <strong>Syntax OK<\/strong>.<\/p>\n\n\n\n<p>If you need to use HTTPS, obtain the SSL\/TLS certificates and configure Apache appropriately.<\/p>\n\n\n\n<p>Disable Apache default site and enable Roundcube site.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">a2dissite 000-default<\/pre>\n\n\n\n<pre id=\"block-a41918dc-3914-43c3-9f3e-cde73a7394d7\" class=\"wp-block-preformatted\">a2ensite roundcube<\/pre>\n\n\n\n<p>Enable the following Apache Modules<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">a2enmod deflate expires headers rewrite<\/pre>\n\n\n\n<p>Restart Apache if there is error.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">systemctl restart apache2<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"database-configuration\">Database Configuration<\/h3>\n\n\n\n<p>Run the MySQL basic secure script to set the root password, remove test databases, disable remote root login and remove anonymous users.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">mysql_secure_installation<\/pre>\n\n\n\n<p>Create Roundcube database and and grant privileges to a separate database user.<\/p>\n\n\n\n<p><strong>Be sure to replace the database, username and password accordingly.<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mysql -u root -p -e \"create database roundcube;\"<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>mysql -u root -p -e \"create user admin@localhost identified by 'ChangeME';\"<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">mysql -u root -p -e \"grant all privileges on roundcube.* to admin@localhost;\"<\/pre>\n\n\n\n<p>Run the command below to reload the database tables and effect the changes made above. Quit the database after that.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">mysql -u root -p -e 'flush privileges';<\/pre>\n\n\n\n<p>Import the Roundcube data to the newly created database above;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mysql -u root -p roundcube &lt; \/var\/www\/roundcube\/SQL\/mysql.initial.sql<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"configure-php\">Configure PHP<\/h3>\n\n\n\n<p>Run the command below to enable PHP mbstring, xml and dom modules respectively.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">phpenmod mbstring xml dom mcrypt intl<\/pre>\n\n\n\n<p>Verify with the command;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php -m | egrep \"mbs|int|dom|xml\"<\/code><\/pre>\n\n\n\n<pre class=\"scroll-box\"><\/code>\ndom\nintl\nlibxml\nmbstring\nrandom\nxml\nxmlreader\nxmlwriter\n<\/code><\/pre>\n\n\n\n<p>Edit the <code>\/etc\/php\/8.2\/apache2\/php.ini<\/code> and set the timezone<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sed -i 's\/^;date.timezone =\/date.timezone = US\\\/Alaska\/g' \/etc\/php\/8.2\/apache2\/php.ini<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"configure-roundcube-on-debian-12-11-10\">Configure Roundcube on Debian 12\/11\/10<\/h3>\n\n\n\n<p>Create Rouncube configuration file based on the sample configuration file. You can simply copy the sample config as shown below;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo -u www-data cp \/var\/www\/roundcube\/config\/config.inc.php{.sample,}<\/pre>\n\n\n\n<p>Open the configuration file for editing and put the contents below;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">vim \/var\/www\/roundcube\/config\/config.inc.php<\/pre>\n\n\n\n<p>Set the database connection string. Replace the details with your database connection details set above.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$config&#91;'db_dsnw'] = 'mysql:\/\/admin:ChangeME@localhost\/roundcube';<\/code><\/pre>\n\n\n\n<p>Next, define your Email server IMAP and SMTP addresses. We use Gmail as our email server in this demo (You will need <a href=\"https:\/\/kifarunix.com\/wp-admin\/edit.php?post_type=gp_elements\" target=\"_blank\" rel=\"noreferrer noopener\">app password<\/a>);<\/p>\n\n\n\n<pre class=\"scroll-box\"><\/code>\n\/\/ IMAP host chosen to perform the log-in.\n\/\/ See defaults.inc.php for the option description.\n<strong>$config['imap_host'] = 'ssl:\/\/imap.gmail.com:993';\n<\/strong>\n\/\/ SMTP server host (for sending mails).\n\/\/ See defaults.inc.php for the option description.\n<strong>$config['smtp_host'] = 'tls:\/\/smtp.gmail.com:587';\n<\/strong>\n\/\/ SMTP username (if required) if you use %u as the username Roundcube\n\/\/ will use the current username for login\n$config['smtp_user'] = '%u';\n\n\/\/ SMTP password (if required) if you use %p as the password Roundcube\n\/\/ will use the current user's password for login\n$config['smtp_pass'] = '%p';\n<\/code><\/pre>\n\n\n\n<p>We will leave the other default settings.<\/p>\n\n\n\n<p>Save and exit the file.<\/p>\n\n\n\n<p>If you need to find more description of the options in the config above, then check the <code>\/var\/www\/roundcube\/config\/defaults.inc.php<\/code>.<\/p>\n\n\n\n<p>You can as well check our previous article on <a href=\"https:\/\/kifarunix.com\/how-to-setup-iredmail-mail-server-on-ubuntu-18-04-lts\/\" target=\"_blank\" rel=\"noopener noreferrer\">how to setup a fully fledged mail server with iRedMail on Ubuntu 18.04<\/a>.<\/p>\n\n\n\n<p>Restart Apache<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">service apache2 restart<\/pre>\n\n\n\n<p>Btw, if you want to test the connection for Email and Database, enable the installer in the Roundcube configuration;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>echo \"\\$config&#91;'enable_installer'] = 'true';\"  &gt;&gt; \/var\/www\/roundcube\/config\/config.inc.php<\/code><\/pre>\n\n\n\n<p>Restart Apache and access the installer from the browser to test the connections;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>http:&#47;&#47;roundcube.kifarunix-demo.com\/installer<\/code><\/pre>\n\n\n\n<p>After everything works fine, then remove the installer;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sed -i '\/enable_installer\/s\/^\/#\/g' \/var\/www\/roundcube\/config\/config.inc.php<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"accessing-roundcube-web-interface\">Accessing Roundcube Web Interface<\/h3>\n\n\n\n<p>You are now ready to access Roundcube web interface. Navigate to <code>http:\/\/roundcube.example.com<\/code> and log in using your email account\u2019s username and password.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1037\" height=\"587\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2018\/12\/roundcube-web-interface-login.png\" alt=\"Install and Setup Roundcube Webmail on Debian\" class=\"wp-image-17807\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2018\/12\/roundcube-web-interface-login.png?v=1689110126 1037w, https:\/\/kifarunix.com\/wp-content\/uploads\/2018\/12\/roundcube-web-interface-login-768x435.png?v=1689110126 768w\" sizes=\"(max-width: 1037px) 100vw, 1037px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1477\" height=\"870\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/07\/roundcube-web-interface.png\" alt=\"Install and Setup Roundcube Webmail on Debian\" class=\"wp-image-17808\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/07\/roundcube-web-interface.png?v=1689110168 1477w, https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/07\/roundcube-web-interface-768x452.png?v=1689110168 768w\" sizes=\"(max-width: 1477px) 100vw, 1477px\" \/><\/figure>\n\n\n\n<p>You have successfully install and setup your Roundcube webmail client and you can now be able to accessible you emails normally.<\/p>\n\n\n\n<p>That closes our guide on how to install and setup Roundcube webmail on Debian 12\/11\/10.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, you will learn how to install and setup Roundcube webmail on Debian 12\/11\/10. Roundcube webmail is a free and open source web-based<\/p>\n","protected":false},"author":1,"featured_media":17810,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_lock_modified_date":false,"footnotes":""},"categories":[121,272],"tags":[7042,7041,7040,7039,7043,270],"class_list":["post-1613","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-howtos","category-email","tag-debian-10-roundcube-install","tag-debian-11-roundcube-install","tag-debian-12-roundcube","tag-install-roundcube-debian","tag-install-roundcube-on-debian-12","tag-roundcube","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-50","resize-featured-image"],"_links":{"self":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/1613"}],"collection":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/comments?post=1613"}],"version-history":[{"count":12,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/1613\/revisions"}],"predecessor-version":[{"id":21082,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/1613\/revisions\/21082"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media\/17810"}],"wp:attachment":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media?parent=1613"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/categories?post=1613"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/tags?post=1613"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}