Compare commits
2 Commits
Author | SHA1 | Date |
---|---|---|
Daniel Berteaud | 6b82db9a60 | 12 years ago |
Daniel Berteaud | 700355d4be | 12 years ago |
9 changed files with 13 additions and 63 deletions
@ -1,12 +0,0 @@ |
|||||||
{ |
|
||||||
|
|
||||||
# Those limits are now defined on the imap entry |
|
||||||
foreach my $prop (qw/ConcurrencyLimit ConcurrencyLimitPerIP ProcessMemoryLimit/){ |
|
||||||
my $imaps_value = $DB->get_prop_and_delete('imaps', $prop); |
|
||||||
next unless ($imaps_value); |
|
||||||
my $imap_value = $DB->get_prop('imap', $prop); |
|
||||||
next if ($imap_value); |
|
||||||
$DB->set_prop('imap', $prop, $imaps_value); |
|
||||||
} |
|
||||||
|
|
||||||
} |
|
@ -1,18 +0,0 @@ |
|||||||
{ |
|
||||||
|
|
||||||
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…
Reference in new issue