Skip to content

Commit

Permalink
submission: relay backend: Provide data for the HELO and PROTO XCLIEN…
Browse files Browse the repository at this point in the history
…T fields to the relay connection.
  • Loading branch information
stephanbosch authored and sirainen committed Dec 4, 2018
1 parent 5d5b612 commit 33a95aa
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/submission/submission-backend-relay.c
Expand Up @@ -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;
Expand Down

0 comments on commit 33a95aa

Please sign in to comment.