From: Stephan Bosch Date: Mon, 27 Nov 2017 00:38:09 +0000 (+0100) Subject: lmtp: proxy: Fixed use of hostip field after changing the implementation to use lib... X-Git-Tag: 2.3.0.rc1~341 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e40c4caaf86615fe8892173f10feffbaff2698db;p=thirdparty%2Fdovecot%2Fcore.git lmtp: proxy: Fixed use of hostip field after changing the implementation to use lib-smtp/client broke it. Proxy was erroneously doing DNS queries while hostip field was returned from passdb. --- diff --git a/src/lmtp/lmtp-proxy.c b/src/lmtp/lmtp-proxy.c index ae99e33530..65cab3ce2c 100644 --- a/src/lmtp/lmtp-proxy.c +++ b/src/lmtp/lmtp-proxy.c @@ -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);