有人可以解释我的 IIS SMTP 日志中的这些 TIMEOUT 条目吗?
对于我尝试通过 SMTP 服务器发送的某些邮件,我会在日志中看到如下所示的条目。 有人可以解释一下这里超时是什么以及 IIS 正在尝试做什么吗?
2011-11-27 13:57:26 10.177.121.40 OutboundConnectionCommand SMTPSVC1 BXWEB00 - 25 DATA - - 0 0 4 0 31 SMTP - - - -
2011-11-27 13:57:26 10.177.121.40 OutboundConnectionResponse SMTPSVC1 BXWEB00 - 25 - - 354+End+data+with+<CR><LF>.<CR><LF> 0 0 35 0 31 SMTP - - - -
2011-11-27 13:57:26 10.177.121.40 OutboundConnectionResponse SMTPSVC1 BXWEB00 - 25 - - 250+2.0.0+Ok:+queued+as+F35C24A057 0 0 34 0 31 SMTP - - - -
2011-11-27 13:57:26 10.177.121.40 OutboundConnectionCommand SMTPSVC1 BXWEB00 - 25 QUIT - - 0 0 4 0 31 SMTP - - - -
2011-11-27 13:57:26 10.177.121.40 OutboundConnectionResponse SMTPSVC1 BXWEB00 - 25 - - 221+2.0.0+Bye 0 0 13 0 31 SMTP - - - -
2011-11-27 13:58:32 127.0.0.1 BXWEB00.netfra.local SMTPSVC1 BXWEB00 127.0.0.1 0 TIMEOUT - BXWEB00.netfra.local 121 16777343 193 67831 637670 SMTP - - - -
2011-11-27 13:58:32 127.0.0.1 BXWEB00.netfra.local SMTPSVC1 BXWEB00 127.0.0.1 0 QUIT - BXWEB00.netfra.local 240 638122 193 67831 637670 SMTP - - - -
2011-11-27 13:59:57 127.0.0.1 BXWEB00.netfra.local SMTPSVC1 BXWEB00 127.0.0.1 0 EHLO - +BXWEB00.netfra.local 250 0 186 25 0 SMTP - - - -
2011-11-27 13:59:57 127.0.0.1 BXWEB00.netfra.local SMTPSVC1 BXWEB00 127.0.0.1 0 MAIL - +FROM:<[email protected]> 250 0 62 49 0 SMTP - - - -
2011-11-27 13:59:57 127.0.0.1 BXWEB00.netfra.local SMTPSVC1 BXWEB00 127.0.0.1 0 RCPT - +TO:<[email protected]> 250 0 35 32 0 SMTP - - - -
2011-11-27 13:59:57 127.0.0.1 BXWEB00.netfra.local SMTPSVC1 BXWEB00 127.0.0.1 0 DATA - +<CHILKAT-MID-937818f1-c530-c3c7-e380-cc106ff13646@BXWEB00.netfra.local> 250 0 155 67995 0 SMTP - - - -
2011-11-27 13:59:57 10.177.121.40 OutboundConnectionResponse SMTPSVC1 BXWEB00 - 25 - - 220+ffm2mta20.hpuss.de+ESMTP 0 0 28 0 16 SMTP - - - -
2011-11-27 13:59:57 10.177.121.40 OutboundConnectionCommand SMTPSVC1 BXWEB00 - 25 EHLO - BXWEB00.netfra.local 0 0 4 0 16 SMTP - - - -
2011-11-27 13:59:57 10.177.121.40 OutboundConnectionResponse SMTPSVC1 BXWEB00 - 25 - - 250-ffm2mta20.hpuss.de 0 0 22 0 16 SMTP - - - -
2011-11-27 13:59:57 10.177.121.40 OutboundConnectionCommand SMTPSVC1 BXWEB00 - 25 MAIL - FROM:<[email protected]>+SIZE=68278 0 0 4 0 16 SMTP - - - -
2011-11-27 13:59:57 10.177.121.40 OutboundConnectionResponse SMTPSVC1 BXWEB00 - 25 - - 250+2.1.0+Ok 0 0 12 0 16 SMTP - - - -
2011-11-27 13:59:57 10.177.121.40 OutboundConnectionCommand SMTPSVC1 BXWEB00 - 25 RCPT - TO:<[email protected]> 0 0 4 0 16 SMTP - - - -
2011-11-27 13:59:57 10.177.121.40 OutboundConnectionResponse SMTPSVC1 BXWEB00 - 25 - - 250+2.1.5+Ok 0 0 12 0 16 SMTP - - - -
2011-11-27 13:59:57 10.177.121.40 OutboundConnectionCommand SMTPSVC1 BXWEB00 - 25 DATA - - 0 0 4 0 16 SMTP - - - -
2011-11-27 13:59:57 10.177.121.40 OutboundConnectionResponse SMTPSVC1 BXWEB00 - 25 - - 354+End+data+with+<CR><LF>.<CR><LF> 0 0 35 0 16 SMTP - - - -
2011-11-27 13:59:57 10.177.121.40 OutboundConnectionResponse SMTPSVC1 BXWEB00 - 25 - - 250+2.0.0+Ok:+queued+as+DB9C54A057 0 0 34 0 31 SMTP - - - -
2011-11-27 13:59:57 10.177.121.40 OutboundConnectionCommand SMTPSVC1 BXWEB00 - 25 QUIT - - 0 0 4 0 31 SMTP - - - -
2011-11-27 13:59:57 10.177.121.40 OutboundConnectionResponse SMTPSVC1 BXWEB00 - 25 - - 221+2.0.0+Bye 0 0 13 0 31 SMTP - - - -
2011-11-27 14:02:02 127.0.0.1 BXWEB00.netfra.local SMTPSVC1 BXWEB00 127.0.0.1 0 TIMEOUT - BXWEB00.netfra.local 121 16777343 193 8813 637093 SMTP - - - -
2011-11-27 14:02:02 127.0.0.1 BXWEB00.netfra.local SMTPSVC1 BXWEB00 127.0.0.1 0 QUIT - BXWEB00.netfra.local 240 637280 193 8813 637093 SMTP - - - -
2011-11-27 14:05:02 127.0.0.1 BXWEB00.netfra.local SMTPSVC1 BXWEB00 127.0.0.1 0 TIMEOUT - BXWEB00.netfra.local 121 16777343 193 68489 636140 SMTP - - - -
2011-11-27 14:05:02 127.0.0.1 BXWEB00.netfra.local SMTPSVC1 BXWEB00 127.0.0.1 0 QUIT - BXWEB00.netfra.local 240 636608 193 68489 636140 SMTP - - - -
2011-11-27 14:06:02 127.0.0.1 BXWEB00.netfra.local SMTPSVC1 BXWEB00 127.0.0.1 0 TIMEOUT - BXWEB00.netfra.local 121 16777343 193 8501 605751 SMTP - - - -
2011-11-27 14:06:02 127.0.0.1 BXWEB00.netfra.local SMTPSVC1 BXWEB00 127.0.0.1 0 QUIT - BXWEB00.netfra.local 240 605939 193 8501 605751 SMTP - - - -
2011-11-27 14:07:32 127.0.0.1 BXWEB00.netfra.local SMTPSVC1 BXWEB00 127.0.0.1 0 TIMEOUT - BXWEB00.netfra.local 121 16777343 193 8813 605377 SMTP - - - -
2011-11-27 14:07:32 127.0.0.1 BXWEB00.netfra.local SMTPSVC1 BXWEB00 127.0.0.1 0 QUIT - BXWEB00.netfra.local 240 605565 193 8813 605377 SMTP - - - -
2011-11-27 14:08:58 127.0.0.1 BXWEB00.netfra.local SMTPSVC1 BXWEB00 127.0.0.1 0 EHLO - +BXWEB00.netfra.local 250 0 186 25 0 SMTP - - - -
For some mails I'm trying to send over our SMTP server I get entries in the log like shown below.
Can somebody explain WHAT is timing out here and what IIS is trying to do?
2011-11-27 13:57:26 10.177.121.40 OutboundConnectionCommand SMTPSVC1 BXWEB00 - 25 DATA - - 0 0 4 0 31 SMTP - - - -
2011-11-27 13:57:26 10.177.121.40 OutboundConnectionResponse SMTPSVC1 BXWEB00 - 25 - - 354+End+data+with+<CR><LF>.<CR><LF> 0 0 35 0 31 SMTP - - - -
2011-11-27 13:57:26 10.177.121.40 OutboundConnectionResponse SMTPSVC1 BXWEB00 - 25 - - 250+2.0.0+Ok:+queued+as+F35C24A057 0 0 34 0 31 SMTP - - - -
2011-11-27 13:57:26 10.177.121.40 OutboundConnectionCommand SMTPSVC1 BXWEB00 - 25 QUIT - - 0 0 4 0 31 SMTP - - - -
2011-11-27 13:57:26 10.177.121.40 OutboundConnectionResponse SMTPSVC1 BXWEB00 - 25 - - 221+2.0.0+Bye 0 0 13 0 31 SMTP - - - -
2011-11-27 13:58:32 127.0.0.1 BXWEB00.netfra.local SMTPSVC1 BXWEB00 127.0.0.1 0 TIMEOUT - BXWEB00.netfra.local 121 16777343 193 67831 637670 SMTP - - - -
2011-11-27 13:58:32 127.0.0.1 BXWEB00.netfra.local SMTPSVC1 BXWEB00 127.0.0.1 0 QUIT - BXWEB00.netfra.local 240 638122 193 67831 637670 SMTP - - - -
2011-11-27 13:59:57 127.0.0.1 BXWEB00.netfra.local SMTPSVC1 BXWEB00 127.0.0.1 0 EHLO - +BXWEB00.netfra.local 250 0 186 25 0 SMTP - - - -
2011-11-27 13:59:57 127.0.0.1 BXWEB00.netfra.local SMTPSVC1 BXWEB00 127.0.0.1 0 MAIL - +FROM:<[email protected]> 250 0 62 49 0 SMTP - - - -
2011-11-27 13:59:57 127.0.0.1 BXWEB00.netfra.local SMTPSVC1 BXWEB00 127.0.0.1 0 RCPT - +TO:<[email protected]> 250 0 35 32 0 SMTP - - - -
2011-11-27 13:59:57 127.0.0.1 BXWEB00.netfra.local SMTPSVC1 BXWEB00 127.0.0.1 0 DATA - +<CHILKAT-MID-937818f1-c530-c3c7-e380-cc106ff13646@BXWEB00.netfra.local> 250 0 155 67995 0 SMTP - - - -
2011-11-27 13:59:57 10.177.121.40 OutboundConnectionResponse SMTPSVC1 BXWEB00 - 25 - - 220+ffm2mta20.hpuss.de+ESMTP 0 0 28 0 16 SMTP - - - -
2011-11-27 13:59:57 10.177.121.40 OutboundConnectionCommand SMTPSVC1 BXWEB00 - 25 EHLO - BXWEB00.netfra.local 0 0 4 0 16 SMTP - - - -
2011-11-27 13:59:57 10.177.121.40 OutboundConnectionResponse SMTPSVC1 BXWEB00 - 25 - - 250-ffm2mta20.hpuss.de 0 0 22 0 16 SMTP - - - -
2011-11-27 13:59:57 10.177.121.40 OutboundConnectionCommand SMTPSVC1 BXWEB00 - 25 MAIL - FROM:<[email protected]>+SIZE=68278 0 0 4 0 16 SMTP - - - -
2011-11-27 13:59:57 10.177.121.40 OutboundConnectionResponse SMTPSVC1 BXWEB00 - 25 - - 250+2.1.0+Ok 0 0 12 0 16 SMTP - - - -
2011-11-27 13:59:57 10.177.121.40 OutboundConnectionCommand SMTPSVC1 BXWEB00 - 25 RCPT - TO:<[email protected]> 0 0 4 0 16 SMTP - - - -
2011-11-27 13:59:57 10.177.121.40 OutboundConnectionResponse SMTPSVC1 BXWEB00 - 25 - - 250+2.1.5+Ok 0 0 12 0 16 SMTP - - - -
2011-11-27 13:59:57 10.177.121.40 OutboundConnectionCommand SMTPSVC1 BXWEB00 - 25 DATA - - 0 0 4 0 16 SMTP - - - -
2011-11-27 13:59:57 10.177.121.40 OutboundConnectionResponse SMTPSVC1 BXWEB00 - 25 - - 354+End+data+with+<CR><LF>.<CR><LF> 0 0 35 0 16 SMTP - - - -
2011-11-27 13:59:57 10.177.121.40 OutboundConnectionResponse SMTPSVC1 BXWEB00 - 25 - - 250+2.0.0+Ok:+queued+as+DB9C54A057 0 0 34 0 31 SMTP - - - -
2011-11-27 13:59:57 10.177.121.40 OutboundConnectionCommand SMTPSVC1 BXWEB00 - 25 QUIT - - 0 0 4 0 31 SMTP - - - -
2011-11-27 13:59:57 10.177.121.40 OutboundConnectionResponse SMTPSVC1 BXWEB00 - 25 - - 221+2.0.0+Bye 0 0 13 0 31 SMTP - - - -
2011-11-27 14:02:02 127.0.0.1 BXWEB00.netfra.local SMTPSVC1 BXWEB00 127.0.0.1 0 TIMEOUT - BXWEB00.netfra.local 121 16777343 193 8813 637093 SMTP - - - -
2011-11-27 14:02:02 127.0.0.1 BXWEB00.netfra.local SMTPSVC1 BXWEB00 127.0.0.1 0 QUIT - BXWEB00.netfra.local 240 637280 193 8813 637093 SMTP - - - -
2011-11-27 14:05:02 127.0.0.1 BXWEB00.netfra.local SMTPSVC1 BXWEB00 127.0.0.1 0 TIMEOUT - BXWEB00.netfra.local 121 16777343 193 68489 636140 SMTP - - - -
2011-11-27 14:05:02 127.0.0.1 BXWEB00.netfra.local SMTPSVC1 BXWEB00 127.0.0.1 0 QUIT - BXWEB00.netfra.local 240 636608 193 68489 636140 SMTP - - - -
2011-11-27 14:06:02 127.0.0.1 BXWEB00.netfra.local SMTPSVC1 BXWEB00 127.0.0.1 0 TIMEOUT - BXWEB00.netfra.local 121 16777343 193 8501 605751 SMTP - - - -
2011-11-27 14:06:02 127.0.0.1 BXWEB00.netfra.local SMTPSVC1 BXWEB00 127.0.0.1 0 QUIT - BXWEB00.netfra.local 240 605939 193 8501 605751 SMTP - - - -
2011-11-27 14:07:32 127.0.0.1 BXWEB00.netfra.local SMTPSVC1 BXWEB00 127.0.0.1 0 TIMEOUT - BXWEB00.netfra.local 121 16777343 193 8813 605377 SMTP - - - -
2011-11-27 14:07:32 127.0.0.1 BXWEB00.netfra.local SMTPSVC1 BXWEB00 127.0.0.1 0 QUIT - BXWEB00.netfra.local 240 605565 193 8813 605377 SMTP - - - -
2011-11-27 14:08:58 127.0.0.1 BXWEB00.netfra.local SMTPSVC1 BXWEB00 127.0.0.1 0 EHLO - +BXWEB00.netfra.local 250 0 186 25 0 SMTP - - - -
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
超时是由于未主动关闭从客户端到 SMTP 服务器的连接而导致的。使用的组件是 Chilkat (http://www.chilkatsoft.com/refdoc/csMailManRef.html),并且手册指出:
只要调用电子邮件发送方法,mailman 对象就会自动打开 SMTP 连接(如果需要) 。连接保持打开状态,直到通过此方法显式关闭为止。调用此方法完全是可选的。当 mailman 对象被破坏时,SMTP 连接也会自动关闭。因此,如果应用程序调用 SendEmail 10 次以发送 10 封电子邮件,则第 1 次调用将打开 SMTP 连接,而后续 9 次将通过现有连接发送(除非更改了用户名、登录名、主机名等属性),这将强制连接关闭并在下一次邮件发送方法调用时重新建立)。
注意:此方法会在关闭连接之前向 SMTP 服务器发送 QUIT 命令。
但是,这对于某些 SMTP 服务器来说似乎是一个问题。他们希望在每封邮件后关闭连接。
The timeouts were caused by not actively closing the connection from the client to the SMTP server. The component used was Chilkat (http://www.chilkatsoft.com/refdoc/csMailManRef.html) and the manual states:
The mailman object automatically opens an SMTP connection (if necessary) whenever an email-sending method is called. The connection is kept open until explicitly closed by this method. Calling this method is entirely optional. The SMTP connection is also automatically closed when the mailman object is destructed. Thus, if an application calls SendEmail 10 times to send 10 emails, the 1st call will open the SMTP connection, while the subsequent 9 will send over the existing connection (unless a property such as username, login, hostname, etc. is changed, which would force the connection to become closed and re-established with the next mail-sending method call).
Note: This method sends a QUIT command to the SMTP server prior to closing the connection.
However, this seems to be a problem for some SMTP server. They want the connection to be closed after each mail.
您没有在 TIMEOUT 行之前发布这些行。如果我不得不猜测,前一行是 RCPT TO 行,而预期是 DATA 行。
这听起来像是防病毒问题。作为测试,请尝试禁用您拥有的所有防病毒软件,然后查看这些条目是否消失。
——戴夫
You didn't post the lines before that TIMEOUT line. If I had to guess, the previous line was a RCPT TO line, when the DATA line was expected.
This smells like an antivirus issue. For a test, try disabling any antivirus software you have, and see if the entries go away.
--Dave