Make LMTP memory limit configurable

This commit is contained in:
Ryan Trinkle 2024-04-08 13:33:50 +00:00
parent 63209b1def
commit 4a5eb4baea
2 changed files with 9 additions and 0 deletions

View File

@ -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 {

View File

@ -291,6 +291,7 @@ in
mode = 0600
user = ${postfixCfg.user}
}
vsz_limit = ${builtins.toString cfg.lmtpMemoryLimit} MB
}
recipient_delimiter = ${cfg.recipientDelimiter}