diff --git a/modules/services/mail/default.nix b/modules/services/mail/default.nix index 7bf6138..c31a4ac 100644 --- a/modules/services/mail/default.nix +++ b/modules/services/mail/default.nix @@ -22,6 +22,20 @@ in { }; config = lib.mkIf cfg.enable { + services.roundcube = { + enable = true; + hostName = config.mailserver.fqdn; + extraConfig = '' + $config['smtp_server'] = "tls://${config.mailserver.fqdn}"; + $config['smtp_user'] = "%u"; + $config['smtp_pass'] = "%p"; + ''; + }; + + services.nginx.enable = true; + + networking.firewall.allowedTCPPorts = [ 80 443 ]; + mailserver = { enable = true; fqdn = "mail.vimium.com";