Search by

systemli / userli

0x46616c6b

Roundcube plugin for Userli

Package info

github.com/systemli/roundcube-userli-plugin

Type:roundcube-plugin

pkg:composer/systemli/userli

Statistics

Installs: 11

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 2

1.1.0 2026-10-26 06:25 UTC

This package is auto-updated.

Last update: 2026-10-26 06:38:15 UTC


README

A Roundcube plugin for Userli:

  • Login with two-factor authentication: the plugin checks the password and, for users with 2FA, asks for the TOTP or backup code in a second step. Userli then issues a webmail credential, which Roundcube uses for IMAP and SMTP instead of the password. It is valid for 12 hours; the Roundcube session ends with it. Logging out revokes it. With a Userli version without the webmail login endpoint, the plugin keeps logging in with the password.

    Two-factor code step

  • Alias identities: at login, the plugin creates a Roundcube identity for each alias of the user.

    Alias identities

Installation

  1. Clone this repository into your Roundcube plugins directory
  2. Copy config.inc.php.dist to config.inc.php and configure your API settings
  3. Enable the plugin in your Roundcube configuration

Configuration

Edit config.inc.php with your userli API settings:

$config['userli_url'] = 'https://your-api.example.org';
$config['userli_token'] = 'your-api-token';
$config['userli_ssl_verify'] = true;

Testing

This plugin includes a comprehensive unit test suite. To run the tests:

# Install dependencies
composer install

# Run tests
composer test

# Or run PHPUnit directly
./vendor/bin/phpunit

# Run tests with verbose output
./vendor/bin/phpunit --verbose