Revert "fix: remove roundcube config"
Added some extra tidying up
This reverts commit e01c469319
.
This commit is contained in:
parent
9fc349abc2
commit
0a1508007a
1 changed files with 19 additions and 0 deletions
|
@ -131,10 +131,29 @@
|
||||||
"${cfg.sub}.${cfg.domain}" = {
|
"${cfg.sub}.${cfg.domain}" = {
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
useACMEHost = "skynet";
|
useACMEHost = "skynet";
|
||||||
|
# override teh inbuilt nginx config
|
||||||
|
enableACME = false;
|
||||||
serverName = "${cfg.sub}.${cfg.domain}";
|
serverName = "${cfg.sub}.${cfg.domain}";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#https://nixos-mailserver.readthedocs.io/en/latest/add-roundcube.html
|
||||||
|
users.groups.nginx = {};
|
||||||
|
services.roundcube = {
|
||||||
|
enable = true;
|
||||||
|
database.username = "roundcube";
|
||||||
|
# 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";
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
mailserver = {
|
mailserver = {
|
||||||
enable = true;
|
enable = true;
|
||||||
fqdn = "${cfg.sub}.${cfg.domain}";
|
fqdn = "${cfg.sub}.${cfg.domain}";
|
||||||
|
|
Loading…
Reference in a new issue