mirror of
https://gitlab.com/simple-nixos-mailserver/nixos-mailserver.git
synced 2025-01-28 02:50:34 +05:00
Make imap memory limit configurable
This commit is contained in:
parent
87ffaad9a3
commit
dc0569066e
@ -712,6 +712,14 @@ in
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
imapMemoryLimit = mkOption {
|
||||||
|
type = types.int;
|
||||||
|
default = 256;
|
||||||
|
description = ''
|
||||||
|
The memory limit for the imap service, in megabytes.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
enableImapSsl = mkOption {
|
enableImapSsl = mkOption {
|
||||||
type = types.bool;
|
type = types.bool;
|
||||||
default = true;
|
default = true;
|
||||||
|
@ -276,6 +276,10 @@ in
|
|||||||
mail_plugins = $mail_plugins imap_sieve
|
mail_plugins = $mail_plugins imap_sieve
|
||||||
}
|
}
|
||||||
|
|
||||||
|
service imap {
|
||||||
|
vsz_limit = ${builtins.toString cfg.imapMemoryLimit} MB
|
||||||
|
}
|
||||||
|
|
||||||
protocol pop3 {
|
protocol pop3 {
|
||||||
mail_max_userip_connections = ${toString cfg.maxConnectionsPerUser}
|
mail_max_userip_connections = ${toString cfg.maxConnectionsPerUser}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user