Discussion:
How to debug SMTP connection lost while reading message data
Felix Schwarz
2009-08-29 14:41:52 UTC
Permalink
Hi,

I have a mail server in a company network that tries to connect my exim smart
host. The company has a very slow internet connection and needs to send some
quite big messages (10-20 MB). Transferring one of these messages should take
about 15-20 minutes by their upload speed.

However these big messages rarely get delivered. In Exim's log I see many
messages like this one:
"SMTP connection from <host> (<internal name>) [<ip>] lost while reading
message data"

On the Exim side I don't do any special blocking and the messages do not hit
size restrictions for sure, smaller messages get through without problems.

I don't think there is some kind of MTU problem (my servers are in
'reasonable' data centers and I don't block ICMP)
I tried sending a big message from the company server to another email
provider and that seemed to work without problems.
I tried using another Exim smarthost located in a different data center but
same the same problems as described above.
I used tcpdump on my Exim server and it looked like the complete message was
being transferred but before Exim acknowledged successful message reception,
the connection was dropped (I could not detect in wireshark what did cause
this - any hints welcome).

Therefore I guess it's some kind of timeout on my Exim's side.

Any hints what to try next? Can I configure Exim timeouts that may influence
it's behavior?

fs
Phil Pennock
2009-08-30 06:37:46 UTC
Permalink
Post by Felix Schwarz
However these big messages rarely get delivered. In Exim's log I see many
"SMTP connection from <host> (<internal name>) [<ip>] lost while reading
message data"
Therefore I guess it's some kind of timeout on my Exim's side.
No, because then Exim would log the timeout. Exim logged that the
connection was dropped. Which means that something outside of Exim
closed the connection.

Perhaps a firewall, or a NAT box dropping a connection, or the client
timing out. How long is it after Exim gets the end of the data before
the connection is dropped? Is Exim not responding immediately?

-Phil
--
## List details at http://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/
Todd Lyons
2009-08-31 20:47:05 UTC
Permalink
Post by Felix Schwarz
"SMTP connection from <host> (<internal name>) [<ip>] lost while reading
message data"
Therefore I guess it's some kind of timeout on my Exim's side.
No, because then Exim would log the timeout.  Exim logged that the
connection was dropped.  Which means that something outside of Exim
closed the connection.
Perhaps a firewall, or a NAT box dropping a connection, or the client
timing out.  How long is it after Exim gets the end of the data before
the connection is dropped?  Is Exim not responding immediately?
The last time this happened to me, an RBL had stopped accepting our
connections and the resulting looking was taking longer than the
remote side was willing to wait.
--
Regards... Todd
--
## List details at http://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/
Continue reading on narkive:
Search results for 'How to debug SMTP connection lost while reading message data' (Questions and Answers)
5
replies
can i get question answer of asp.net ?
started 2006-10-11 00:02:47 UTC
software
Loading...