On Tue, Feb 20, 2001 at 11:01:51AM +1100, Ryan Byrne wrote:
> My qmail gateway is having problems sending mail to one site.
> It comes up with the message:
>
> @400000003a91aab624c4605c delivery 21318: deferral:
>Connected_to_203.18.189.160_but_connection_died._Possible_duplicate!_(#4.4.2)/
"Connected to x.y.z.a but connection died." means a connection was
established but it died at some point. The "possible duplicate"
qualifier means that the connection died after qmail-remote sent the
\r\n.\r\n terminating sequence but before it got an acknowledgement
from the other end.
> If this error occurs it normally only happens to a site
> once or twice and then the message gets through. With this
> site every delivery gets this error and then the message
> eventually fails. Apparently there is no problem with the
> other site receiving mail from any other source. I guessed
> that maybe the message confirmation was invalid, or not
> arriving, so firstly I delivered the message by telnet to
> port 25 and the confirmation comes back with:
>
> 250 OK
[...]
> I ran an strace and got the following
>
> 31499 982557084.820533 read(3, "354 Send data. End with CRLF.CR"..., 128) = 36
> 31499 982557084.820601 read(0, "Received: (qmail 14284 invoked b"..., 1024) = 568
> 31499 982557084.820749 read(0, "", 1024) = 0
> 31499 982557084.820791 select(4, NULL, [3], NULL, {1200, 0}) = 1 (out [3], left
>{1200, 0})
> 31499 982557084.820927 write(3, "Received: (qmail 14284 invoked b"..., 581) = 581
> 31499 982557084.821009 select(4, [3], NULL, NULL, {1200, 0} <unfinished ...>
> 31499 982557389.880638 <... select resumed> ) = 1 (in [3], left {894, 970000})
> 31499 982557389.880738 read(3, <unfinished ...>
> 31499 982557389.880795 <... read resumed> "", 128) = 0
> 31499 982557389.880881 write(1, "r\0ZConnected to 203.18.189.160 b"..., 82
><unfinished ...>
> 31499 982557389.880961 <... write resumed> ) = 82
> 31499 982557389.881160 _exit(0) = ?
>
> which seems to me as though something unusual is happening
> between sending the message and trying to receive the
> confirmation.
As the log message indicates.
> I have taken a look through the source code however I am a
> bit out of touch with my C coding, so was unable to pick up
> anything obvious. I have gotten hold of an IDE and will try
> my luck with that.
>
> I am running qmail v1.03 on a redhat 6.2 box (kernel 2.2.16).
> The remote server appears to be a Microsoft Exchange Server v5.5.
>
> I would have written the problem off as a problem with the
> remote server if the telnet hadn't worked.
What is the server's address?