Update sp-modules/simple-nixos-mailserver/config.nix

def 2024-04-24 02:18:28 +03:00
parent 15574b6902
commit 3b637e8b1a
1 changed files with 12 additions and 6 deletions

View File

@ -58,13 +58,19 @@ lib.mkIf sp.modules.simple-nixos-mailserver.enable {
virusScanning = false;
};
services.roundcube = {
enable = true;
hostName = "cube.bloodwine.cyou";
};
services.nginx = {
enable = true;
enable = true;
# this is the url of the vhost, not necessarily the same as the fqdn of
# the mailserver
hostName = "webmail.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";
'';
};
networking.firewall.allowedTCPPorts = [ 80 443 ];