]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lmtp: proxy: Fixed proxying reply from backend server.
authorStephan Bosch <stephan.bosch@dovecot.fi>
Mon, 27 Nov 2017 10:45:05 +0000 (11:45 +0100)
committerStephan Bosch <stephan.bosch@dovecot.fi>
Mon, 27 Nov 2017 15:21:31 +0000 (16:21 +0100)
It contained an additional CRLF, which caused problems.

src/lmtp/lmtp-proxy.c

index cfd092e0326252e7dcb99d4f80cc60e0cee16d22..ae99e335301c2ac6f35bc4dce0928602cbd1a80b 100644 (file)
@@ -264,7 +264,7 @@ static void
 lmtp_proxy_write_reply(string_t *reply, const struct smtp_reply *proxy_reply)
 {
        if (smtp_reply_is_remote(proxy_reply)) {
-               smtp_reply_write(reply, proxy_reply);
+               smtp_reply_write_one_line(reply, proxy_reply);
        } else {
                str_append(reply, "451 4.4.0 Remote server not answering");
                switch (proxy_reply->status) {