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 + +}