Mercurial > dovecot > core-2.2
diff src/lmtp/main.c @ 18297:0e657cfb3f98
lmtp: Added lmtp_user_concurrency_limit setting.
This allows limiting the number of concurrent deliveries to a single user.
Useful in case one user is receiving a lot of mails and causing other
deliveries to be delayed. If the limit is reached, Dovecot returns temporary
failure error at DATA stage.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Fri, 06 Mar 2015 02:10:02 +0200 |
parents | 3009a1a6f6d5 |
children | 9e120590e0ef |
line wrap: on
line diff
--- a/src/lmtp/main.c Fri Mar 06 02:06:10 2015 +0200 +++ b/src/lmtp/main.c Fri Mar 06 02:10:02 2015 +0200 @@ -7,6 +7,7 @@ #include "abspath.h" #include "restrict-access.h" #include "fd-close-on-exec.h" +#include "anvil-client.h" #include "master-service.h" #include "master-service-settings.h" #include "master-interface.h" @@ -27,6 +28,7 @@ const char *dns_client_socket_path, *base_dir; struct mail_storage_service_ctx *storage_service; +struct anvil_client *anvil; static void client_connected(struct master_service_connection *conn) { @@ -69,6 +71,8 @@ static void main_deinit(void) { clients_destroy(); + if (anvil != NULL) + anvil_client_deinit(&anvil); } int main(int argc, char *argv[])