Compare commits
21 Commits
Author | SHA1 | Date |
---|---|---|
Daniel Berteaud | 8761671533 | 10 years ago |
Daniel Berteaud | 405eb1157d | 10 years ago |
Daniel Berteaud | 0075251890 | 11 years ago |
Daniel Berteaud | 79b21830af | 11 years ago |
Daniel Berteaud | 07711461cf | 11 years ago |
Daniel Berteaud | 8a97c4d939 | 11 years ago |
Daniel Berteaud | af29cbe4dc | 11 years ago |
Daniel Berteaud | 20f8d3181a | 11 years ago |
Daniel Berteaud | 952bf0e709 | 11 years ago |
Daniel Berteaud | 0cd9571a65 | 11 years ago |
Daniel Berteaud | bf99846901 | 12 years ago |
Daniel Berteaud | c24e5140ec | 12 years ago |
Daniel Berteaud | 19d0c43c27 | 12 years ago |
Daniel Berteaud | c635de001b | 12 years ago |
Daniel Berteaud | 2c96405523 | 12 years ago |
Daniel Berteaud | 238da5d92c | 12 years ago |
Daniel Berteaud | 7d231598c0 | 12 years ago |
Daniel Berteaud | a6c24e6347 | 12 years ago |
Daniel Berteaud | fbfdfd783d | 13 years ago |
Daniel Berteaud | 94d202cae6 | 13 years ago |
Daniel Berteaud | 5e98fd3ad9 | 13 years ago |
10 changed files with 84 additions and 27 deletions
@ -0,0 +1,12 @@ |
|||||||
|
{ |
||||||
|
|
||||||
|
# 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); |
||||||
|
} |
||||||
|
|
||||||
|
} |
@ -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…
Reference in new issue