Compare commits
12 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 |
7 changed files with 58 additions and 6 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