Summary
The following error appears in the TSMTPD log file of IMSS even when you already installed the latest service packs and patches and latest TCP tweaks for Windows:
2010/07/29 14:54:25.368 [2256:4296] 21 D Fail to receive data, WSARecv returns error code: 10053 (xxx.xxx.xxx.xxx:49888-xxx.xxx.xxx.xxx:25)
[smtpsessionmgr.cpp(3742),CSmtpSession::KickoffAsynRead_Unlock]
2010/07/29 14:54:26.040 [2256:4296] 21 D Fail to receive data, WSARecv returns error code: 10053 (xxx.xxx.xxx.xxx:49892-xxx.xxx.xxx.xxx:25)
[smtpsessionmgr.cpp(3742),CSmtpSession::KickoffAsynRead_Unlock]
2010/07/29 14:54:26.227 [2256:4296] 21 D Fail to receive data, WSARecv returns error code: 10053 (xxx.xxx.xxx.xxx:49891-xxx.xxx.xxx.xxx:25)
[smtpsessionmgr.cpp(3742),CSmtpSession::KickoffAsynRead_Unlock]
2010/07/29 14:54:26.883 [2256:4296] 21 D Fail to receive data, WSARecv returns error code: 10053 (xxx.xxx.xxx.xxx:49896-xxx.xxx.xxx.xxx:25)
[smtpsessionmgr.cpp(3742),CSmtpSession::KickoffAsynRead_Unlock]
2010/07/29 14:54:26.040 [2256:4296] 21 D Fail to receive data, WSARecv returns error code: 10053 (xxx.xxx.xxx.xxx:49892-xxx.xxx.xxx.xxx:25)
[smtpsessionmgr.cpp(3742),CSmtpSession::KickoffAsynRead_Unlock]
2010/07/29 14:54:26.227 [2256:4296] 21 D Fail to receive data, WSARecv returns error code: 10053 (xxx.xxx.xxx.xxx:49891-xxx.xxx.xxx.xxx:25)
[smtpsessionmgr.cpp(3742),CSmtpSession::KickoffAsynRead_Unlock]
2010/07/29 14:54:26.883 [2256:4296] 21 D Fail to receive data, WSARecv returns error code: 10053 (xxx.xxx.xxx.xxx:49896-xxx.xxx.xxx.xxx:25)
Details
This issue can be attributed to the network end at your side. When IMSS sends the "." sign to signify End of Messages, the sign is not acknowledged by the remote server (downstream server). IMSS will then send the FIN message to the remote server to end the transaction.
We recommend modifying the "IdleWaitingSecond" parameter from three (3) to five (5) minutes to allow more time for the Remote Server to acknowledge the EOM being sent by the IMSS server.
To resolve the issue:
- Create a backup of the TSMTPD.INI file.
- Open the file using a text editor.
- Go to the [SmtpClient] section and change the value of the following parameter from "180" (3 minutes) to "300" (5 minutes):
IdleWaitingSecond=300
- Save and close the file.
- Restart the IMSS services via Windows Service applet.
If the issue persists:
- Generate a new batch of IMSS logs in debug mode. For more information on collecting the logs, refer to the following solution: Basic information and troubleshooting guide for IMSS.
- Run a packet sniff tool, such as Wireshark.
- Replicate the issue.
- Collect the IMSS debug logs and the Wireshark PCAP files and compress them in a ZIP file.
- Send the files to Trend Micro Technical Support.
For more information on WSARecv function, refer to the Microsoft artcle WSARecv function (Windows).