Document and package the Roundcube sign-on plugin
This commit is contained in:
1 parent
07b26838c9
commit
653d365645
5 files changed
+271
No files matched your search
@@ -840,6 +840,76 @@ managed login. Existing database grants scope the session to the selected
|
||||
database. Sign out of phpMyAdmin to end its session.
|
||||
[phpMyAdmin signon mode](https://docs.phpmyadmin.net/en/latest/config.html#example-for-signon-authentication)
|
||||
|
||||
### Open a mailbox in Roundcube
|
||||
|
||||
On Ubuntu 26.04 with PHP 8.5, use the current Roundcube 1.7 Complete
|
||||
release from [Roundcube Downloads](https://roundcube.net/download/). Verify
|
||||
the archive and install Roundcube in `/opt/roundcube` following the
|
||||
[upstream manual setup](https://github.com/roundcube/roundcubemail/wiki/Installation).
|
||||
The Ubuntu 26.04 package at version 1.6.11 cannot start with PHP 8.5.
|
||||
Install the required PHP extensions for Roundcube and its database, as
|
||||
well as `php8.5-curl` for the bridge.
|
||||
|
||||
Use the mail server already configured for Coulobre. Confirm that a
|
||||
mailbox can sign in over TLS using its full email address. Configure a
|
||||
single IMAP host with a trusted certificate and configure Roundcube's SMTP
|
||||
submission settings for sending mail. The same setup works with the panel's
|
||||
local or remote [mailbox credential service](#enable-connection-details-for-remote-mailboxes).
|
||||
|
||||
Use a dedicated PHP-FPM account. Grant that account read access to the
|
||||
Roundcube configuration and bridge key, access to the database, and write
|
||||
access to the Roundcube temporary files and logs. Use the same account for
|
||||
Roundcube maintenance jobs. Keep the application code and configuration
|
||||
owned by root.
|
||||
|
||||
```sh
|
||||
sudo useradd --system --user-group --no-create-home --shell /usr/sbin/nologin coulobre-roundcube
|
||||
sudo install -d -o root -g coulobre-roundcube -m 0750 /etc/coulobre-roundcube
|
||||
sudo install -o root -g coulobre-roundcube -m 0640 /dev/null /etc/coulobre-roundcube/bridge.key
|
||||
sudo sh -c 'openssl rand -hex 32 > /etc/coulobre-roundcube/bridge.key'
|
||||
sudo install -D -m 0644 deploy/roundcube/coulobre_webmail.php \
|
||||
/opt/roundcube/plugins/coulobre_webmail/coulobre_webmail.php
|
||||
sudo install -m 0644 deploy/roundcube/pool.conf.example \
|
||||
/etc/php/8.5/fpm/pool.d/coulobre-roundcube.conf
|
||||
sudo install -o root -g coulobre-roundcube -m 0640 deploy/roundcube/config.inc.php.example \
|
||||
/etc/coulobre-roundcube/webmail.inc.php
|
||||
sudoedit /etc/coulobre-roundcube/webmail.inc.php
|
||||
```
|
||||
|
||||
Set the panel origin to the exact HTTPS origin users visit, including a
|
||||
non-default port if one is used. Set `imap_host` to the mail server's TLS
|
||||
endpoint. Include the example from the end of Roundcube's
|
||||
`/opt/roundcube/config/config.inc.php`.
|
||||
|
||||
```php
|
||||
require '/etc/coulobre-roundcube/webmail.inc.php';
|
||||
```
|
||||
|
||||
Configure the webmail site with `deploy/roundcube/apache.conf.example`.
|
||||
Substitute the hostname and certificate paths, enable Apache's `ssl` and
|
||||
`proxy_fcgi` modules, and enable the site. The example serves
|
||||
`/opt/roundcube/public_html` through the dedicated FPM socket and blocks
|
||||
the web installer. Run the Apache configuration test and reload Apache
|
||||
and PHP-FPM. Keep certificate verification enabled between Roundcube and
|
||||
both the panel and the IMAP server.
|
||||
|
||||
On the panel, set the following values in `/etc/coulobre/panel.env`. Use the
|
||||
same random key from `bridge.key` for Roundcube only. Set the webmail URL to
|
||||
the canonical HTTPS base URL so a form POST can arrive without a redirect.
|
||||
|
||||
```ini
|
||||
COULOBRE_ROUNDCUBE_URL=https://webmail.example.org
|
||||
COULOBRE_ROUNDCUBE_BRIDGE_KEY=
|
||||
```
|
||||
|
||||
Run `panel_manage migrate --noinput`, collect static files, and restart
|
||||
`coulobre-panel`. Use **Open webmail** beside a mailbox in the account
|
||||
view. The browser carries a single-use ticket valid for 45 seconds.
|
||||
Roundcube exchanges the ticket with Coulobre over HTTPS and uses its
|
||||
ordinary IMAP login. The exchange appears in **Service credential
|
||||
accesses**. Opening another mailbox in the same browser switches the
|
||||
current Roundcube session.
|
||||
|
||||
## Publish local DNS zones from the panel
|
||||
|
||||
To publish to BIND9 on another host, use the
|
||||
|
||||
Reference in new issue
Block a user