我有一台 IIS 7 服务器,它拒绝以下命令,但是当我使用非 IIS 服务器时,该命令被接受。
错误是:503 5.5.2 Body type BINARYMIME requires BDAT
根据我对 SMTP CHUNKING 的理解,“Data”一词应该替换为“BDAT”,这是导致问题的原因。有人可以确认或帮助我了解此 SMTP 会话出了什么问题吗?
09/10/2013 15:11:45.872 - Attempting to connect to host 10.10.10.10 on port 25, local bound address is (null)
09/10/2013 15:11:45.988 - Successfully connected to host 10.10.10.10 on port 25
09/10/2013 15:11:46.038 - < 220 *******************************************************************************************************************
09/10/2013 15:11:46.088 - ######## START OF CHUNK ######
09/10/2013 15:11:46.138 - > EHLO vmpro-PC
09/10/2013 15:11:46.138 - ######## END OF CHUNK ######
09/10/2013 15:11:46.151 - < 250-smtp01.company.com Hello [10.1.1.1]
09/10/2013 15:11:46.151 - 250-XXXA
09/10/2013 15:11:46.151 - 250-SIZE 41009152
09/10/2013 15:11:46.151 - 250-ETRN
09/10/2013 15:11:46.151 - 250-PIPELINING
09/10/2013 15:11:46.151 - 250-DSN
09/10/2013 15:11:46.151 - 250-ENHANCEDSTATUSCODES
09/10/2013 15:11:46.151 - 250-8bitmime
09/10/2013 15:11:46.151 - 250-BINARYMIME
09/10/2013 15:11:46.151 - 250-XXXXXXXB
09/10/2013 15:11:46.151 - 250-VRFY
09/10/2013 15:11:46.151 - 250 XC
09/10/2013 15:11:46.201 - ######## START OF CHUNK ######
09/10/2013 15:11:46.251 - > MAIL FROM:<[email protected]> BODY=BINARYMIME
09/10/2013 15:11:46.251 - ######## END OF CHUNK ######
09/10/2013 15:11:46.264 - < 250 2.1.0 [email protected] ....Sender OK
09/10/2013 15:11:46.314 - ######## START OF CHUNK ######
09/10/2013 15:11:46.372 - > RCPT TO:<[email protected]>
09/10/2013 15:11:46.422 - ######## END OF CHUNK ######
09/10/2013 15:11:46.436 - < 250 2.1.5 [email protected]
09/10/2013 15:11:46.486 - ######## START OF CHUNK ######
09/10/2013 15:11:46.536 - > DATA
09/10/2013 15:11:46.536 - ######## END OF CHUNK ######
09/10/2013 15:11:46.547 - < 503 5.5.2 Body type BINARYMIME requires BDAT
09/10/2013 15:11:46.597 - CSMTPConnection::SendMessageA: An unexpected DATA response was received.
09/10/2013 15:11:46.697 - ######## START OF CHUNK ######
09/10/2013 15:11:46.697 - > QUIT
09/10/2013 15:11:46.697 - ######## END OF CHUNK ######
09/10/2013 15:11:46.710 - < 221 2.0.0 smtp01.company.com Service closing transmission channel
答案1
你的理解似乎是正确的。引用自RFC 3030 第 3 节:
BINARYMIME 服务扩展只能与“CHUNKING”服务扩展一起使用。
和:
BINARYMIME 不能与 DATA 命令一起使用。如果在包含“BINARYMIME”主体值的 MAIL 命令之后发出 DATA 命令,则必须发送 503“命令序列错误”响应。此错误条件导致的状态不确定,必须使用 RSET 命令重置事务。
因此,IIS 服务器似乎符合要求。可能另一台服务器也符合要求RFC 1830,表示“应该”发送一个错误。