From 03e99166e1101944c5b8e7ea0f8ae57ffa68f11d Mon Sep 17 00:00:00 2001 From: Lillian-Violet Date: Fri, 15 Dec 2023 21:57:14 +0100 Subject: [PATCH] Let's try two servers? --- nixos/queen/mail-server.nix | 27 ++++++++++++++++++++------- 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/nixos/queen/mail-server.nix b/nixos/queen/mail-server.nix index 41fd5e3..9b8abaf 100644 --- a/nixos/queen/mail-server.nix +++ b/nixos/queen/mail-server.nix @@ -36,7 +36,6 @@ "nextcloud.gladtherescake.eu" "akkoma.gladtherescake.eu" "social.gladtherescake.eu" - "lillianviolet.dev" ]; loginAccounts = { @@ -49,6 +48,26 @@ "no-reply@social.gladtherescake.eu" = { hashedPasswordFile = config.sops.secrets."mailpass".path; }; + }; + + rejectRecipients = [ + "no-reply@nextcloud.gladtherescake.eu" + "no-reply@akkoma.gladtherescake.eu" + "no-reply@social.gladtherescake.eu" + ]; + certificateScheme = "acme-nginx"; + }; + + mailserver = { + enable = true; + enableImap = true; + enableSubmission = true; + fqdn = "mail.lillianviolet.dev"; + domains = [ + "lillianviolet.dev" + ]; + + loginAccounts = { "info@lillianviolet.dev" = { hashedPasswordFile = config.sops.secrets."mailpass".path; aliases = [ @@ -59,12 +78,6 @@ ]; }; }; - - rejectRecipients = [ - "no-reply@nextcloud.gladtherescake.eu" - "no-reply@akkoma.gladtherescake.eu" - "no-reply@social.gladtherescake.eu" - ]; certificateScheme = "acme-nginx"; }; }