From 737e66f8221bd1ae70085e7e3cb605196c7cd163 Mon Sep 17 00:00:00 2001
From: Gonne <gonne@mathebau.de>
Date: Tue, 18 Mar 2025 09:44:02 +0100
Subject: [PATCH] Increase limits for our redirect script to be higher than our
 number of aliases

---
 nixos/modules/mail.nix | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/nixos/modules/mail.nix b/nixos/modules/mail.nix
index 24d144c..f36995f 100644
--- a/nixos/modules/mail.nix
+++ b/nixos/modules/mail.nix
@@ -1,6 +1,6 @@
 /*
 * Building: We patch our version of stalwart and thus need to built it locally.
-*   Be aware that this needs some hours, about 12Gb RAM and a few Gb free space in /tmp.
+*   Be aware that this needs some hours, about 20Gb RAM and a few Gb free space in /tmp.
 *   If you only want to deploy configuration changes and no software updates, consider building on the target VM.
 *   It has stalwart in its nix store and does not need to rebuild it.
 * Forwarding mails: Update the Sops-secrets in the machine directory, rebuild on the VM and deploy.
@@ -225,8 +225,8 @@ in {
               {"else" = false;}
             ];
             limits = {
-              redirects = 50;
-              out-messages = 50;
+              redirects = 500;
+              out-messages = 500;
             };
           };
           # See https://stalw.art/docs/smtp/authentication/dkim/sign