diff --git a/default.nix b/default.nix index ac75bce..f8a1305 100644 --- a/default.nix +++ b/default.nix @@ -460,6 +460,14 @@ in ''; }; + lmtpMemoryLimit = mkOption { + type = types.int; + default = 256; + description = '' + The memory limit for the LMTP service, in megabytes. + ''; + }; + extraVirtualAliases = mkOption { type = let loginAccount = mkOptionType { diff --git a/mail-server/dovecot.nix b/mail-server/dovecot.nix index 11f2708..05b5552 100644 --- a/mail-server/dovecot.nix +++ b/mail-server/dovecot.nix @@ -291,6 +291,7 @@ in mode = 0600 user = ${postfixCfg.user} } + vsz_limit = ${builtins.toString cfg.lmtpMemoryLimit} MB } recipient_delimiter = ${cfg.recipientDelimiter}