From fcf9b2da2d70554c38302feb9b2d2716c7b2069d Mon Sep 17 00:00:00 2001 From: def Date: Wed, 24 Apr 2024 02:08:27 +0300 Subject: [PATCH] Update sp-modules/simple-nixos-mailserver/config.nix --- sp-modules/simple-nixos-mailserver/config.nix | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/sp-modules/simple-nixos-mailserver/config.nix b/sp-modules/simple-nixos-mailserver/config.nix index b65177e..cd28bae 100644 --- a/sp-modules/simple-nixos-mailserver/config.nix +++ b/sp-modules/simple-nixos-mailserver/config.nix @@ -59,9 +59,17 @@ lib.mkIf sp.modules.simple-nixos-mailserver.enable { }; services.roundcube = { - enable = true; - hostName = "mail.bloodwine.cyou"; - }; + enable = true; + # this is the url of the vhost, not necessarily the same as the fqdn of + # the mailserver + hostName = "cube.bloodwine.cyou"; + # extraConfig = '' + # starttls needed for authentication, so the fqdn required to match + # the certificate + # $config['smtp_server'] = "tls://${config.mailserver.fqdn}"; + # $config['smtp_user'] = "%u"; + # $config['smtp_pass'] = "%p"; + # ''; services.nginx = { enable = true;