[exim-dev] [Bug 3059] SIGSEGV on SMTP delivery if remote bad…

Top Page
Delete this message
Reply to this message
Author: Exim Bugzilla
Date:  
To: exim-dev
Subject: [exim-dev] [Bug 3059] SIGSEGV on SMTP delivery if remote badly responds while PIPELINING and CHUNKED is active
https://bugs.exim.org/show_bug.cgi?id=3059

--- Comment #1 from Jeremy Harris <jgh146exb@???> ---
There must be another required condition. My initial testing (using testsuite
facilities) gets

2017-07-30 18:51:05.712 10HmaX-000000005vi-0000 <= sender@??? U=root
Ci=p1234 P=local-bsmtp S=sss for f@???
2017-07-30 18:51:05.712 10HmaX-000000005vi-0000 H=127.0.0.1 [127.0.0.1]: Remote
host closed connection in response to pipelined end of data
2017-07-30 18:51:05.712 10HmaX-000000005vi-0000 ** f@??? R=to_server
T=remote_smtp H=127.0.0.1 [127.0.0.1]: SMTP error from remote mail server after
RCPT TO:<f@???>: 550 no such recipient
2017-07-30 18:51:05.712 10HmaX-000000005vi-0000 f@???: error ignored
2017-07-30 18:51:05.712 10HmaX-000000005vi-0000 Completed

so
> interprets the state as DEFER (and even logs that).

did not happen.

I'm suspecting there was another recipient for that message. If I add one, I
get

2017-07-30 18:51:05.712 10HmaX-000000005vi-0000 <= sender@??? U=root
Ci=p1234 P=local-bsmtp S=sss for f1@??? f2@???
2017-07-30 18:51:05.712 10HmaX-000000005vi-0000 H=127.0.0.1 [127.0.0.1]: Remote
host closed connection in response to pipelined end of data
2017-07-30 18:51:05.712 10HmaX-000000005vi-0000 ** f1@??? R=to_server
T=remote_smtp H=127.0.0.1 [127.0.0.1]: SMTP error from remote mail server after
RCPT TO:<f1@???>: 550 no such recipient
2017-07-30 18:51:05.712 10HmaX-000000005vi-0000 == f2@??? R=to_server
T=remote_smtp defer (-18) H=127.0.0.1 [127.0.0.1]: Remote host closed
connection in response to pipelined end of data
2017-07-30 18:51:05.712 10HmaX-000000005vi-0000 f1@???: error ignored

which is reasonable as far as logging goes (and the delivery states implied).

Then adding a second IP for the destination host:

2017-07-30 18:51:05.712 10HmaX-000000005vi-0000 <= sender@??? U=root
Ci=p1234 P=local-bsmtp S=sss for f1@??? f2@???
2017-07-30 18:51:05.712 10HmaX-000000005vi-0000 H=127.0.0.1 [127.0.0.1]: Remote
host closed connection in response to pipelined end of data
2017-07-30 18:51:05.712 10HmaX-000000005vi-0000 ** f1@??? R=to_server
T=remote_smtp H=127.0.0.1 [127.0.0.1]: SMTP error from remote mail server after
RCPT TO:<f1@???>: 550 no such recipient
2017-07-30 18:51:05.712 10HmaX-000000005vi-0000 => f2@??? R=to_server
T=remote_smtp H=ip4.ip4.ip4.ip4 [ip4.ip4.ip4.ip4] K C="250 OK bdat"
2017-07-30 18:51:05.712 10HmaX-000000005vi-0000 f1@???: error ignored
2017-07-30 18:51:05.712 10HmaX-000000005vi-0000 Completed

Now, this second IP was done as a second item in the "hosts" option on the
transport. I don't think that is significantly different to a set of hosts
found by a dnslookup router and passed to the transport, but it's a
possibility.
Another possibility is some different arrangement of done/outstanding
recipients
for the message. Then there's the size of the message; my test one is
small enough to be sent in a single BDAT.

--
You are receiving this mail because:
You are on the CC list for the bug.

--
## subscription configuration (requires account):
## https://lists.exim.org/mailman3/postorius/lists/exim-dev.lists.exim.org/
## unsubscribe (doesn't require an account):
## exim-dev-unsubscribe@???
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/