Mailing List Archive

[Bug 2596] Changing the default value for the hosts_noproxy_tls option breaks the use of smtp authorization
https://bugs.exim.org/show_bug.cgi?id=2596

--- Comment #1 from Jeremy Harris <jgh146exb@wizmail.org> ---
Could you clarify what you mean by "authorization", and show what is broken?

--
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 2596] Changing the default value for the hosts_noproxy_tls option breaks the use of smtp authorization [ In reply to ]
https://bugs.exim.org/show_bug.cgi?id=2596

--- Comment #2 from Sergey <prospero_ne@mail.ru> ---
(In reply to Jeremy Harris from comment #1)
> Could you clarify what you mean by "authorization", and show what is broken?

I mean the following case.
Exim server configured as a smart host to send letters via external smtp.
If several emails from different users of the same external smtp get to this
server at the same time, then the first email opens a smtp session, and the
next ones try to go to an already open session.
This works well if emails are sent without authorization, or with authorization
under the same smtp user.
But if the users of the smtp are different, the emails get into the already
open smtp session under the wrong login.
In the log, it looks like this:

17:47:13 1jiJ3O-0004Q3-Oy => F=<first@user.com> H=smtp.example.com A=login
C="250 2.0.0 OK 10sm7101118qkv.136"
17:47:14 1jiJ1k-0003ZP-Jj => F=<second@user.com> H=smtp.example.com C="250
2.0.0 OK 1591627634 10sm7101118qkv.136"

The first email went authorized (A = login), the next one was simply
transferred to the smtp server without authorization.

In the debug log, it looks like this:
17:47:11 17036 set_process_info: 17036 delivering 1jiJ3O-0004Q3-Oy to
smtp.example.com
17:47:11 17036 Connecting to smtp.example.com ...
***
17:47:11 17036 Initialized TLS
***
17:47:11 17036 Calling SSL_connect
***
17:47:11 17036 SSL_connect succeeded
***
17:47:11 17036 SMTP<< 220 smtp.example.com ESMTP 10sm7101118qkv.136
***
17:47:12 17036 SMTP>> AUTH LOGIN
***
17:47:12 17036 SMTP<< 235 2.7.0 Accepted
17:47:12 17036 login authenticator yielded 0
***
17:47:13 17036 SMTP<< 250 2.0.0 OK 10sm7101118qkv.136
***
17:47:13 17036 set_process_info: 17036 delivering 1jiJ3O-0004Q3-Oy: just tried
smtp.example.com ... result OK
17:47:13 17036 Leaving transport

17:47:13 17131 set_process_info: 17131 delivering 1jiJ1k-0003ZP-Jj
17:47:13 17131 transport entered
***
17:47:13 17131 already connected to smtp.example.com (on fd 0)
***
17:47:13 17131 delivering 1jiJ1k-0003ZP-Jj to smtp.example.com
***
17:47:13 17131 continued connection, proxied TLS
***
17:47:14 17131 SMTP<< 250 2.0.0 OK 1591627634 10sm7101118qkv.136
***
17:47:14 17131 set_process_info: 17131 delivering 1jiJ1k-0003ZP-Jj: just tried
smtp.example.com ... result OK

--
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 2596] Changing the default value for the hosts_noproxy_tls option breaks the use of smtp authorization [ In reply to ]
https://bugs.exim.org/show_bug.cgi?id=2596

--- Comment #3 from Jeremy Harris <jgh146exb@wizmail.org> ---
(In reply to Sergey from comment #2)
> (In reply to Jeremy Harris from comment #1)
> > Could you clarify what you mean by "authorization", and show what is broken?
>
> I mean the following case.
> Exim server configured as a smart host to send letters via external smtp.
> If several emails from different users of the same external smtp get to this
> server at the same time, then the first email opens a smtp session, and the
> next ones try to go to an already open session.
> This works well if emails are sent without authorization, or with
> authorization under the same smtp user.
> But if the users of the smtp are different, the emails get into the already
> open smtp session under the wrong login.
> In the log, it looks like this:
>
> 17:47:13 1jiJ3O-0004Q3-Oy => F=<first@user.com> H=smtp.example.com A=login
> C="250 2.0.0 OK 10sm7101118qkv.136"
> 17:47:14 1jiJ1k-0003ZP-Jj => F=<second@user.com> H=smtp.example.com C="250
> 2.0.0 OK 1591627634 10sm7101118qkv.136"
>
> The first email went authorized (A = login), the next one was simply
> transferred to the smtp server without authorization.

Well, the connection used authentication, in SMTP term.

If you're using authentication to infer authorization, despite
them being slight different concepts, you are free to change the
hosts_noproxy_tls so as to force (under current exim architecture)
a new TLS connection per message. That's why there is an option.
The same goes for if you're really only using authentication, but do want
it to be tied to the message (rather than the client system).

I'm not convinced there's a bug here, even if the change does affect your use
case.

--
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 2596] Changing the default value for the hosts_noproxy_tls option breaks the use of smtp authorization [ In reply to ]
https://bugs.exim.org/show_bug.cgi?id=2596

Jeremy Harris <jgh146exb@wizmail.org> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |WORKSFORME

--- Comment #4 from Jeremy Harris <jgh146exb@wizmail.org> ---
Lacking further discussion, nothing to fix.

--
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/ ##