Merge branch 'webmail-roundcube' into 'main'
Webmail roundcube See merge request compsoc/skynet/nixos!1
This commit is contained in:
commit
1d3e610ce9
1 changed files with 14 additions and 0 deletions
|
@ -123,6 +123,20 @@
|
|||
};
|
||||
};
|
||||
|
||||
#https://nixos-mailserver.readthedocs.io/en/latest/add-roundcube.html
|
||||
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
|
||||
# Restart = lib.mkForce "always";
|
||||
|
|
Loading…
Reference in a new issue