Last updated on August 12, 2026
Overview
Supported Authentication Methods
Before You Start
Create an Application in the Rublon Admin Console
Install Rublon Authenticator
Installing Roundcube MFA
Option 1: Existing Roundcube Installation
sudo git clone --depth 1 https://github.com/Rublon/rublon-roundcube.git rublon
composer require 'rublon/rublon-sdk-php:^4.1' --no-interaction
$config['session_storage'] = 'php';
$config['plugins'][] = 'rublon';
Composer Dependency Workaround
pear-pear.php.net/auth_sasl
pear-pear.php.net/mail_mime
pear-pear.php.net/net_smtp
pear-pear.php.net/net_sieve
sudo mkdir -p /opt/rublon-sdk
sudo chown "$USER":"$USER" /opt/rublon-sdk
cd /opt/rublon-sdk
composer require 'rublon/rublon-sdk-php:^4.1' --no-interaction
sudo chown -R root:root /opt/rublon-sdk
require_once '/opt/rublon-sdk/vendor/autoload.php';
$config['session_storage'] = 'php';
$config['plugins'][] = 'rublon';
Option 2: Docker Container Installation
cd /opt
sudo git clone https://github.com/Rublon/rublon-roundcube.git
cd /opt/roundcube-lab
sudo nano Dockerfile.roundcube
FROM roundcube/roundcubemail:1.7.2-apache
RUN cd /usr/src/roundcubemail \
&& composer require rublon/rublon-sdk-php:^4.1 --no-interaction --update-no-dev
sudo mkdir -p /opt/roundcube-lab/config
sudo nano /opt/roundcube-lab/config/rublon.inc.php
<?php
$config['session_storage'] = 'php';
sudo nano /opt/roundcube-lab/compose.yml
build:
context: .
dockerfile: Dockerfile.roundcube
image: roundcube-rublon:1.7.2
ROUNDCUBEMAIL_PLUGINS: archive,zipdownload,rublon
ROUNDCUBEMAIL_PLUGINS: rublon
- /opt/rublon-roundcube:/var/www/html/plugins/rublon:ro
- ./config/rublon.inc.php:/var/roundcube/config/rublon.inc.php:ro
cd /opt/roundcube-lab
sudo docker compose config
Configuring MFA for Roundcube
cd /opt/rublon-roundcube
sudo cp config.inc.php.dist config.inc.php
<?php
$config['client'] = 'SYSTEM_TOKEN';
$config['secret'] = 'SECRET_KEY';
$config['rublonApi'] = 'https://core.rublon.net';
$config['rcubeUrl'] = 'https://mail.example.com/roundcube';
sudo systemctl restart apache2
cd /opt/roundcube-lab
sudo docker compose up -d --build
Testing MFA for Roundcube


Troubleshooting
sudo docker logs roundcube --tail 100
sudo docker exec -it roundcube ls -la /var/www/html/plugins/rublon
sudo docker exec -it roundcube composer show rublon/rublon-sdk-php