Files
roundcube-ident_switch/config.inc.php.dist
Laurent Dinclaux 6ea4aee0a7 Add managesieve (Sieve) support for remote accounts
When switching identities, the managesieve plugin still connected to
the default sieve server. Hook into managesieve_connect to redirect
the sieve connection to the remote account's server.

Adds sieve_host, sieve_port and sieve_auth columns to the database,
a Sieve section to the identity settings form, preconfig support for
sieve_host, and localized labels for all 7 languages.
2026-02-10 14:03:47 +11:00

53 lines
1.5 KiB
Plaintext

<?php
/**
* ident_switch - Configuration file.
*
* Copyright (C) 2016 Boris Gulay
* Copyright (C) 2026 Gecka
*
* Original code licensed under GPL-3.0+.
* New contributions licensed under AGPL-3.0+.
*
* @url https://github.com/Gecka-apps/ident_switch
*/
/*
* Preconfigured settings for different mail domains.
* Appropriate set of values is searched by mapping domain of email (from identity) to array key.
*/
$config['ident_switch.preconfig'] = [
// Domain part of email address
'domain.tld' => [
// IMAP connection: scheme://host:port
// Schemes: ssl:// for IMAPS (port 993), tls:// for STARTTLS (port 143).
// Required.
'imap_host' => 'ssl://mail.domain.tld:993',
// SMTP connection: scheme://host:port
// Schemes: tls:// for STARTTLS (port 587), ssl:// for SMTPS (port 465).
// Falls back to imap_host if not specified.
'smtp_host' => 'tls://mail.domain.tld:587',
// Sieve (managesieve) connection: scheme://host:port
// Schemes: tls:// for STARTTLS (port 4190), ssl:// for implicit TLS.
// Optional. Only needed if the managesieve plugin is installed.
'sieve_host' => 'tls://mail.domain.tld:4190',
// Login name, can be 'email' (full address from identity), 'mbox' (only mailbox part).
// Any other value is treated as 'not specified' (default).
'user' => 'email',
// Are specified settings locked in interface or not.
// Default - false.
'readonly' => true,
],
'another.tld' => [
'imap_host' => 'tls://mail.another.tld:143',
'smtp_host' => 'tls://mail.another.tld:587',
'user' => 'mbox',
],
];