From a2d5cfcd7f3641d8880962f6e8782f65b384a448 Mon Sep 17 00:00:00 2001 From: Rory& Date: Mon, 4 Nov 2024 08:09:37 +0100 Subject: Autodiscover -> autoconfig --- host/Rory-nginx/services/email/autoconfig.nix | 2 +- host/Rory-nginx/services/email/maddy.nix | 5 +---- host/Rory-nginx/services/email/nginx.nix | 2 +- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/host/Rory-nginx/services/email/autoconfig.nix b/host/Rory-nginx/services/email/autoconfig.nix index 7dd183a..d258046 100644 --- a/host/Rory-nginx/services/email/autoconfig.nix +++ b/host/Rory-nginx/services/email/autoconfig.nix @@ -4,7 +4,7 @@ enable = true; settings = { service_addr = ":1323"; - domain = "autodiscover.rory.gay"; + domain = "autoconfig.rory.gay"; imap = { server = "rory.gay"; port = 993; diff --git a/host/Rory-nginx/services/email/maddy.nix b/host/Rory-nginx/services/email/maddy.nix index ac8c7fb..0dfc2e4 100644 --- a/host/Rory-nginx/services/email/maddy.nix +++ b/host/Rory-nginx/services/email/maddy.nix @@ -37,14 +37,11 @@ ]; }; }; + networking.firewall.allowedTCPPorts = [ 993 465 ]; - # security.acme.certs."mail.rory.gay" = { - # group = config.services.maddy.group; - # }; - users.users.maddy.extraGroups = [ "nginx" ]; } diff --git a/host/Rory-nginx/services/email/nginx.nix b/host/Rory-nginx/services/email/nginx.nix index ba1a172..812993a 100644 --- a/host/Rory-nginx/services/email/nginx.nix +++ b/host/Rory-nginx/services/email/nginx.nix @@ -23,7 +23,7 @@ "/".return = "200 'OK'"; }; }; - "autodiscover.rory.gay" = { + "autoconfig.rory.gay" = { enableACME = true; forceSSL = true; locations."/".proxyPass = "http://localhost:1323"; -- cgit 1.4.1