diff options
Diffstat (limited to 'systems/eldiron/websites/mail/roundcubemail.nix')
-rw-r--r-- | systems/eldiron/websites/mail/roundcubemail.nix | 13 |
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'; |