Compare commits

...

1 Commits

Author SHA1 Message Date
dettlaff 2938cfa33e feat: add roundcube 2024-05-14 00:39:21 +04:00
1 changed files with 14 additions and 0 deletions

View File

@ -89,4 +89,18 @@ lib.mkIf sp.modules.simple-nixos-mailserver.enable
virusScanning = false;
};
services.roundcube = {
enable = true;
# this is the url of the vhost, not necessarily the same as the fqdn of
# the mailserver
hostName = "webmail.${config.selfprivacy.domain}";
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";
'';
};
}