Mailing List Archive

[Bug 2710] Delivering multiple emails on a continuous sequence resets proxy_session/proxy_local_address value
https://bugs.exim.org/show_bug.cgi?id=2710

Jeremy Harris <jgh146exb@wizmail.org> changed:

What |Removed |Added
----------------------------------------------------------------------------
Assignee|unallocated@exim.org |jgh146exb@wizmail.org
Status|NEW |ASSIGNED

--- Comment #1 from Jeremy Harris <jgh146exb@wizmail.org> ---
The file /etc/exim4/conf.d/transport/30_exim4-config_remote_smtp
is specific to your system or distro. Please give the transport
configuration entire.

For testing purposes it is likely more simple to load up the queue
by using "-odq" command-line sourced messages, rather than manipulating
a firewall.

Since the second message is logged as delivered, on a continued connection,
is the issue merely the logging (it having actually used the proxy)?

--
You are receiving this mail because:
You are on the CC list for the bug.
--
## List details at https://lists.exim.org/mailman/listinfo/exim-dev Exim details at http://www.exim.org/ ##
[Bug 2710] Delivering multiple emails on a continuous sequence resets proxy_session/proxy_local_address value [ In reply to ]
https://bugs.exim.org/show_bug.cgi?id=2710

--- Comment #2 from George <george@seinternal.com> ---
Hello. The config file is the one for debian (sid).
Here it is:

george@XYZ:~# cat /etc/exim4/conf.d/transport/30_exim4-config_remote_smtp

### transport/30_exim4-config_remote_smtp
#################################
# This transport is used for delivering messages over SMTP connections.
# Refuse to send any message with over-long lines, which could have
# been received other than via SMTP. The use of message_size_limit to
# enforce this is a red herring.

remote_smtp:
debug_print = "T: remote_smtp for $local_part@$domain"
driver = smtp
.ifndef IGNORE_SMTP_LINE_LENGTH_LIMIT
message_size_limit = ${if > {$max_received_linelength}{998} {1}{0}}
.endif
.ifdef REMOTE_SMTP_HOSTS_AVOID_TLS
hosts_avoid_tls = REMOTE_SMTP_HOSTS_AVOID_TLS
.endif
.ifdef REMOTE_SMTP_HEADERS_REWRITE
headers_rewrite = REMOTE_SMTP_HEADERS_REWRITE
.endif
.ifdef REMOTE_SMTP_RETURN_PATH
return_path = REMOTE_SMTP_RETURN_PATH
.endif
.ifdef REMOTE_SMTP_HELO_DATA
helo_data=REMOTE_SMTP_HELO_DATA
.endif
.ifdef DKIM_DOMAIN
dkim_domain = DKIM_DOMAIN
.endif
.ifdef DKIM_SELECTOR
dkim_selector = DKIM_SELECTOR
.endif
.ifdef DKIM_PRIVATE_KEY
dkim_private_key = DKIM_PRIVATE_KEY
.endif
.ifdef DKIM_CANON
dkim_canon = DKIM_CANON
.endif
.ifdef DKIM_STRICT
dkim_strict = DKIM_STRICT
.endif
.ifdef DKIM_SIGN_HEADERS
dkim_sign_headers = DKIM_SIGN_HEADERS
.endif
.ifdef TLS_DH_MIN_BITS
tls_dh_min_bits = TLS_DH_MIN_BITS
.endif
.ifdef REMOTE_SMTP_TLS_CERTIFICATE
tls_certificate = REMOTE_SMTP_TLS_CERTIFICATE
.endif
.ifdef REMOTE_SMTP_PRIVATEKEY
tls_privatekey = REMOTE_SMTP_PRIVATEKEY
.endif
.ifndef REMOTE_SMTP_DISABLE_DANE
dnssec_request_domains = *
hosts_try_dane = *
.endif

--
You are receiving this mail because:
You are on the CC list for the bug.
--
## List details at https://lists.exim.org/mailman/listinfo/exim-dev Exim details at http://www.exim.org/ ##
[Bug 2710] Delivering multiple emails on a continuous sequence resets proxy_session/proxy_local_address value [ In reply to ]
https://bugs.exim.org/show_bug.cgi?id=2710

--- Comment #3 from George <george@seinternal.com> ---
> Since the second message is logged as delivered, on a continued connection,
is the issue merely the logging (it having actually used the proxy)?
The logging provided here is rather for exemplification than being the actual
issue.

The actual issue is that at some point, after the code decides it's a
continuous stream(after the first mail), it sets the proxy_session and
proxy_local_address variables to NULL. Those variables are useful if you want
to check which interface was used for delivering that specific mail. (e.g. I'm
sending several emails and for some I'm using proxy and for others I'm not.
Since the logging only provides the PRX log only for the first mail(in a
continous stream) I want to rely(compute them inside an ACL) on proxy_session
and proxy_local_address for checking the interface used for delivering each
mail).

--
You are receiving this mail because:
You are on the CC list for the bug.
--
## List details at https://lists.exim.org/mailman/listinfo/exim-dev Exim details at http://www.exim.org/ ##