]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lmtp: Use hostname (not IP) for proxy_redirect_host_next
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Fri, 8 Jul 2022 13:32:38 +0000 (16:32 +0300)
committertimo.sirainen <timo.sirainen@open-xchange.com>
Wed, 3 Aug 2022 17:05:11 +0000 (17:05 +0000)
This makes it consistent with login-common and doveadm.

src/lmtp/lmtp-proxy.c

index 4acee4a028d9a6e2806210194c4938ec6bffd796..11e218e8f45ce894b82927c050a6df46bf27403a 100644 (file)
@@ -670,7 +670,6 @@ lmtp_proxy_rcpt_redirect_relookup(struct lmtp_proxy_recipient *lprcpt,
 {
        struct lmtp_recipient *lrcpt = lprcpt->rcpt;
        struct smtp_server_recipient *rcpt = lrcpt->rcpt;
-       const struct ip_addr *ip = &set->set.host_ip;
        in_port_t port = set->set.port;
        struct auth_master_connection *auth_conn;
        struct auth_user_info info;
@@ -685,7 +684,7 @@ lmtp_proxy_rcpt_redirect_relookup(struct lmtp_proxy_recipient *lprcpt,
        lmtp_proxy_rcpt_get_redirect_path(lprcpt, hosts_attempted);
        const char *const extra_fields[] = {
                t_strdup_printf("proxy_redirect_host_next=%s:%u",
-                               net_ip2addr(ip), port),
+                               set->set.host, port),
                str_c(hosts_attempted),
                t_strdup_printf("destuser=%s", str_tabescape(destuser)),
                t_strdup_printf("proxy_timeout=%u", lprcpt->conn->set.set.timeout_msecs),