From 87ffaad9a3c54560983d133923b2f4f4ebefdca2 Mon Sep 17 00:00:00 2001 From: Ryan Trinkle Date: Mon, 8 Apr 2024 14:03:19 +0000 Subject: [PATCH] Add quota-status memory limit --- default.nix | 8 ++++++++ mail-server/dovecot.nix | 4 ++++ 2 files changed, 12 insertions(+) diff --git a/default.nix b/default.nix index f8a1305..dfcb36e 100644 --- a/default.nix +++ b/default.nix @@ -468,6 +468,14 @@ in ''; }; + quotaStatusMemoryLimit = mkOption { + type = types.int; + default = 256; + description = '' + The memory limit for the quota-status service, in megabytes. + ''; + }; + extraVirtualAliases = mkOption { type = let loginAccount = mkOptionType { diff --git a/mail-server/dovecot.nix b/mail-server/dovecot.nix index 05b5552..e4829d1 100644 --- a/mail-server/dovecot.nix +++ b/mail-server/dovecot.nix @@ -294,6 +294,10 @@ in vsz_limit = ${builtins.toString cfg.lmtpMemoryLimit} MB } + service quota-status { + vsz_limit = ${builtins.toString cfg.quotaStatusMemoryLimit} MB + } + recipient_delimiter = ${cfg.recipientDelimiter} lmtp_save_to_detail_mailbox = ${cfg.lmtpSaveToDetailMailbox}