]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
submission: relay backend: Provide data for the HELO and PROTO XCLIENT fields to...
authorStephan Bosch <stephan.bosch@dovecot.fi>
Mon, 3 Dec 2018 17:45:40 +0000 (18:45 +0100)
committerVille Savolainen <ville.savolainen@dovecot.fi>
Tue, 12 Feb 2019 13:42:06 +0000 (15:42 +0200)
src/submission/submission-backend-relay.c

index 2ac74cdb6d8a756fe79ca2dbf67bc6e3db79c673..f569bf6f118ec32339e5f7832762cbf91aa1d170 100644 (file)
@@ -1045,9 +1045,15 @@ submission_backend_relay_create(
        }
 
        if (set->trusted) {
+               struct smtp_server_helo_data *helo_data =
+                       smtp_server_connection_get_helo_data(client->conn);
+
                backend->trusted = TRUE;
                smtp_set.peer_trusted = TRUE;
 
+               smtp_set.proxy_data.helo = helo_data->domain;
+               smtp_set.proxy_data.proto = SMTP_PROXY_PROTOCOL_ESMTP;
+
                if (user->conn.remote_ip != NULL) {
                        smtp_set.proxy_data.source_ip =
                                *user->conn.remote_ip;