Apply process limits

tags/0.1.3_el5 0.1.3_el5
Daniel Berteaud 11 years ago
parent 952bf0e709
commit 20f8d3181a
  1. 18
      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
}
Loading…
Cancel
Save