From b1ca6e19148b33ea0acca0c3e0d1b7a9c7faeba1 Mon Sep 17 00:00:00 2001 From: Evan Cassidy Date: Mon, 24 Jul 2023 13:49:27 +0000 Subject: [PATCH] [webmail] add webmail config --- applications/email.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/applications/email.nix b/applications/email.nix index 0789f4d..26780b3 100644 --- a/applications/email.nix +++ b/applications/email.nix @@ -122,6 +122,18 @@ serverName = "${cfg.sub}.${cfg.domain}"; }; }; + services.roundcube = { + enable = true; + # this is the url of the vhost, not necessarily the same as the fqdn of + # the mailserver + hostName = "${cfg.sub}.${cfg.domain}"; + extraConfig = '' + # starttls needed for authentication, so the fqdn required to match + # the certificate + $config['smtp_server'] = "tls://${cfg.sub}.${cfg.domain}"; + $config['smtp_user'] = "%u"; + $config['smtp_pass'] = "%p"; + ''; # systemd.services.dovecot2.serviceConfig = { # # restart it daily, override default values