mirror of
https://gitlab.com/simple-nixos-mailserver/nixos-mailserver.git
synced 2025-01-27 10:30:34 +05:00
Make LMTP memory limit configurable
This commit is contained in:
parent
63209b1def
commit
4a5eb4baea
@ -460,6 +460,14 @@ in
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
lmtpMemoryLimit = mkOption {
|
||||||
|
type = types.int;
|
||||||
|
default = 256;
|
||||||
|
description = ''
|
||||||
|
The memory limit for the LMTP service, in megabytes.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
extraVirtualAliases = mkOption {
|
extraVirtualAliases = mkOption {
|
||||||
type = let
|
type = let
|
||||||
loginAccount = mkOptionType {
|
loginAccount = mkOptionType {
|
||||||
|
@ -291,6 +291,7 @@ in
|
|||||||
mode = 0600
|
mode = 0600
|
||||||
user = ${postfixCfg.user}
|
user = ${postfixCfg.user}
|
||||||
}
|
}
|
||||||
|
vsz_limit = ${builtins.toString cfg.lmtpMemoryLimit} MB
|
||||||
}
|
}
|
||||||
|
|
||||||
recipient_delimiter = ${cfg.recipientDelimiter}
|
recipient_delimiter = ${cfg.recipientDelimiter}
|
||||||
|
Loading…
Reference in New Issue
Block a user