aboutsummaryrefslogtreecommitdiff
path: root/systems/eldiron/websites/mail/roundcubemail.nix
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2024-10-12 16:22:33 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2024-10-12 16:28:35 +0200
commit6962aacc84b50467e387294386b4cf51906f1dd4 (patch)
tree8aab94838e14fc4bc9ccb007df432aad275b85c8 /systems/eldiron/websites/mail/roundcubemail.nix
parent63226079b1697b6ccec1081239ca875bdc01f210 (diff)
downloadNix-6962aacc84b50467e387294386b4cf51906f1dd4.tar.gz
Nix-6962aacc84b50467e387294386b4cf51906f1dd4.tar.zst
Nix-6962aacc84b50467e387294386b4cf51906f1dd4.zip
Bump roundcube
Diffstat (limited to 'systems/eldiron/websites/mail/roundcubemail.nix')
-rw-r--r--systems/eldiron/websites/mail/roundcubemail.nix13
1 files changed, 10 insertions, 3 deletions
diff --git a/systems/eldiron/websites/mail/roundcubemail.nix b/systems/eldiron/websites/mail/roundcubemail.nix
index 21a10fe..1db6c81 100644
--- a/systems/eldiron/websites/mail/roundcubemail.nix
+++ b/systems/eldiron/websites/mail/roundcubemail.nix
@@ -15,15 +15,16 @@ rec {
15 text = 15 text =
16 let 16 let
17 psql_url = with env.postgresql; "pgsql://${user}:${password}@unix(${socket}:${port})/${database}"; 17 psql_url = with env.postgresql; "pgsql://${user}:${password}@unix(${socket}:${port})/${database}";
18 mysql_postfix_url = with config.myEnv.mail.dovecot.mysql; "mysql://${user}:${password}@unix(${socket})/${database}";
18 in '' 19 in ''
19 <?php 20 <?php
20 $config['db_dsnw'] = '${psql_url}'; 21 $config['db_dsnw'] = '${psql_url}';
21 $config['default_host'] = 'ssl://imap.immae.eu'; 22 $config['imap_host'] = 'ssl://imap.immae.eu';
22 $config['username_domain'] = array( 23 $config['username_domain'] = array(
23 "imap.immae.eu" => "mail.immae.eu" 24 "imap.immae.eu" => "mail.immae.eu"
24 ); 25 );
25 $config['imap_conn_options'] = array("ssl" => array("verify_peer" => false)); 26 $config['imap_conn_options'] = array("ssl" => array("verify_peer" => false));
26 $config['smtp_server'] = 'tls://smtp.immae.eu'; 27 $config['smtp_host'] = 'tls://smtp.immae.eu';
27 $config['smtp_port'] = '587'; 28 $config['smtp_port'] = '587';
28 $config['managesieve_host'] = 'imap.immae.eu'; 29 $config['managesieve_host'] = 'imap.immae.eu';
29 $config['managesieve_port'] = '4190'; 30 $config['managesieve_port'] = '4190';
@@ -49,16 +50,22 @@ rec {
49 'markasjunk', 50 'markasjunk',
50 'managesieve', 51 'managesieve',
51 'newmail_notifier', 52 'newmail_notifier',
53 'reconnect',
52 'vcard_attachments', 54 'vcard_attachments',
53 'zipdownload', 55 'zipdownload',
56 'virtuser_query',
54 57
55 'automatic_addressbook',
56 'message_highlight', 58 'message_highlight',
57 'carddav', 59 'carddav',
60 // Intégré à roundcube 'automatic_addressbook',
58 // Ne marche pas ?: 'ident_switch', 61 // Ne marche pas ?: 'ident_switch',
59 // Ne marche pas ?: 'thunderbird_labels', 62 // Ne marche pas ?: 'thunderbird_labels',
60 ); 63 );
61 64
65 $config['virtuser_query_dsn'] = '${mysql_postfix_url}';
66 $config['virtuser_query'] = array(
67 "user" => "SELECT destination FROM forwardings WHERE ((regex = 1 AND '%m' REGEXP CONCAT('^',source,'$')) OR (regex = 0 AND source = '%m')) AND active = 1"
68 );
62 $config['language'] = 'fr_FR'; 69 $config['language'] = 'fr_FR';
63 70
64 $config['drafts_mbox'] = 'Drafts'; 71 $config['drafts_mbox'] = 'Drafts';