]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lmtp: proxy: Fixed use of hostip field after changing the implementation to use lib...
authorStephan Bosch <stephan.bosch@dovecot.fi>
Mon, 27 Nov 2017 00:38:09 +0000 (01:38 +0100)
committerStephan Bosch <stephan.bosch@dovecot.fi>
Mon, 27 Nov 2017 15:21:31 +0000 (16:21 +0100)
Proxy was erroneously doing DNS queries while hostip field was returned from passdb.

src/lmtp/lmtp-proxy.c

index ae99e335301c2ac6f35bc4dce0928602cbd1a80b..65cab3ce2cf3e6683cbf45f289440e1cff880710 100644 (file)
@@ -184,7 +184,7 @@ lmtp_proxy_get_connection(struct lmtp_proxy *proxy,
        array_append(&proxy->connections, &conn, 1);
 
        lmtp_conn = smtp_client_connection_create(proxy->lmtp_client,
-               set->protocol, set->host, set->port,
+               set->protocol, conn->set.host, conn->set.port,
                SMTP_CLIENT_SSL_MODE_NONE, NULL);
        smtp_client_connection_connect(lmtp_conn, NULL, NULL);