forked from SelfPrivacy/selfprivacy-nixos-config
Update sp-modules/simple-nixos-mailserver/config.nix
parent
15574b6902
commit
3b637e8b1a
|
@ -58,13 +58,19 @@ lib.mkIf sp.modules.simple-nixos-mailserver.enable {
|
||||||
virusScanning = false;
|
virusScanning = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
services.roundcube = {
|
services.roundcube = {
|
||||||
enable = true;
|
enable = true;
|
||||||
hostName = "cube.bloodwine.cyou";
|
# this is the url of the vhost, not necessarily the same as the fqdn of
|
||||||
};
|
# the mailserver
|
||||||
|
hostName = "webmail.bloodwine.cyou";
|
||||||
services.nginx = {
|
extraConfig = ''
|
||||||
enable = true;
|
# 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 ];
|
networking.firewall.allowedTCPPorts = [ 80 443 ];
|
||||||
|
|
Loading…
Reference in New Issue