X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/b9df1829d6afa37ef6576d04fc8845c1d20269b0..5013d912e961203f2ab2d5f64be90255cda81b80:/src/src/transport.c diff --git a/src/src/transport.c b/src/src/transport.c index 2caf6e5f0..e6e327822 100644 --- a/src/src/transport.c +++ b/src/src/transport.c @@ -1959,7 +1959,7 @@ DEBUG(D_transport) debug_printf("transport_pass_socket entered\n"); if ((pid = fork()) == 0) { - int i = 17; + int i = 20; const uschar **argv; /* Disconnect entirely from the parent process. If we are running in the @@ -1982,7 +1982,16 @@ if ((pid = fork()) == 0) if (smtp_peer_options & PEER_OFFERED_PIPE) argv[i++] = US"-MCP"; if (smtp_peer_options & PEER_OFFERED_SIZE) argv[i++] = US"-MCS"; #ifdef SUPPORT_TLS - if (smtp_peer_options & PEER_OFFERED_TLS) argv[i++] = US"-MCT"; + if (smtp_peer_options & PEER_OFFERED_TLS) + if (tls_out.active >= 0 || continue_proxy_cipher) + { + argv[i++] = US"-MCt"; + argv[i++] = sending_ip_address; + argv[i++] = string_sprintf("%d", sending_port); + argv[i++] = tls_out.active >= 0 ? tls_out.cipher : continue_proxy_cipher; + } + else + argv[i++] = US"-MCT"; #endif if (queue_run_pid != (pid_t)0)