[webmail] add webmail config

This commit is contained in:
evanc 2023-07-24 13:49:27 +00:00
parent a0bbdbae26
commit b1ca6e1914

View file

@ -122,6 +122,18 @@
serverName = "${cfg.sub}.${cfg.domain}";
};
};
services.roundcube = {
enable = true;
# 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";
'';
# systemd.services.dovecot2.serviceConfig = {
# # restart it daily, override default values