diff options
Diffstat (limited to 'systems/eldiron/websites/mail')
-rw-r--r-- | systems/eldiron/websites/mail/default.nix | 4 | ||||
-rw-r--r-- | systems/eldiron/websites/mail/roundcubemail.nix | 13 |
2 files changed, 12 insertions, 5 deletions
diff --git a/systems/eldiron/websites/mail/default.nix b/systems/eldiron/websites/mail/default.nix index 0a0342b..e212cd2 100644 --- a/systems/eldiron/websites/mail/default.nix +++ b/systems/eldiron/websites/mail/default.nix | |||
@@ -111,13 +111,13 @@ in | |||
111 | phpOptions = config.services.phpfpm.phpOptions + '' | 111 | phpOptions = config.services.phpfpm.phpOptions + '' |
112 | date.timezone = 'CET' | 112 | date.timezone = 'CET' |
113 | ''; | 113 | ''; |
114 | phpPackage = pkgs.php72.withExtensions({ enabled, all }: enabled ++ [ all.imagick all.redis ]); | 114 | phpPackage = pkgs.php82.withExtensions({ enabled, all }: enabled ++ [ all.imagick all.redis ]); |
115 | }; | 115 | }; |
116 | services.phpfpm.pools.rainloop = { | 116 | services.phpfpm.pools.rainloop = { |
117 | user = "wwwrun"; | 117 | user = "wwwrun"; |
118 | group = "wwwrun"; | 118 | group = "wwwrun"; |
119 | settings = rainloop.phpFpm.pool; | 119 | settings = rainloop.phpFpm.pool; |
120 | phpPackage = pkgs.php72.withExtensions({ enabled, all }: enabled ++ [ all.redis ]); | 120 | phpPackage = pkgs.php82.withExtensions({ enabled, all }: enabled ++ [ all.redis ]); |
121 | }; | 121 | }; |
122 | system.activationScripts = { | 122 | system.activationScripts = { |
123 | roundcubemail = roundcubemail.activationScript; | 123 | roundcubemail = roundcubemail.activationScript; |
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'; |