From: Timo Sirainen Date: Wed, 3 Dec 2025 14:00:08 +0000 (+0200) Subject: login-common: Use login_binary.service_name for anvil lookups X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b43db10f516a13ffb24985130b2b93d0ef9dccc3;p=thirdparty%2Fdovecot%2Fcore.git login-common: Use login_binary.service_name for anvil lookups This fixes mail_max_userip_connections to work with managesieve. It was previously using "sieve" to do the lookup, while actually using "managesieve" for registering itself to anvil. Now the lookup will also use "managesieve". --- diff --git a/src/login-common/sasl-server.c b/src/login-common/sasl-server.c index 15cbdd6165..9277c7d7f5 100644 --- a/src/login-common/sasl-server.c +++ b/src/login-common/sasl-server.c @@ -302,7 +302,7 @@ anvil_check_too_many_connections(struct client *client) query = t_strconcat("LOOKUP\t", str_tabescape(client->virtual_user), "\t", - login_binary->protocol, "\t", + login_binary->service_name, "\t", net_ip2addr(&client->ip), NULL); client->anvil_request = req; client->anvil_query =