From 20f8d3181a6e7a3d881f537714a9abf3899d4e15 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Tue, 24 Dec 2013 10:14:53 +0100 Subject: [PATCH] Apply process limits --- .../templates/etc/dovecot/dovecot.conf/27Limits | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 root/etc/e-smith/templates/etc/dovecot/dovecot.conf/27Limits diff --git a/root/etc/e-smith/templates/etc/dovecot/dovecot.conf/27Limits b/root/etc/e-smith/templates/etc/dovecot/dovecot.conf/27Limits new file mode 100644 index 0000000..2576a22 --- /dev/null +++ b/root/etc/e-smith/templates/etc/dovecot/dovecot.conf/27Limits @@ -0,0 +1,18 @@ +{ + +my $ConcurrencyLimit = $imap{ConcurrencyLimit} || '400'; +my $ConcurrencyLimitPerIP = $imap{ConcurrencyLimitPerIP} || '12'; +my $ProcessMemoryLimit = $imap{ProcessMemoryLimit} || '256000000'; + +$OUT .=<<"END"; + +service imap { + process_limit = $ConcurrencyLimit + vsz_limit = $ProcessMemoryLimit +} +protocol imap { + mail_max_userip_connections = $ConcurrencyLimitPerIP +} +END + +}