Summary
You encounter one of the following issues when resending a quarantined mail:
- You fail to release a quarantined mail and the web console shows that the action is "Unsuccessful".
- When resending quarantined mail to external address, the remote server rejects the connection and shows the following error message:
#550 5.6.2 SMTPSEND.BareLinefeedsAreIllegal; message contains bare linefeeds, which cannot be sent via DATA ##
Details
The Case Diagnostic Tool (CDT) debug logs of this issue display the following:
2014/01/14 11:38:31 Z [1968 :13972] [utilwebui.dll][utilCGIRequestData.cpp( 166)] [DEBUG] CCGIRequestData::GetEnvVariable(pszName = Page, strValue = administration/SystemDateTime.htm)
2014/01/14 11:38:31 Z [1968 :13972] [servwebuiprocessor.dll][webui_UIHandlerManager.cpp( 176)] [DEBUG] ==> CWebUIHandlerManager::LoadHandler(pszModuleFileName = uiWebAdministration.dll)
2014/01/14 11:38:31 Z [1968 :13972] [servwebuiprocessor.dll][webui_UIHandlerManager.cpp( 218)] [DEBUG] <== CWebUIHandlerManager::LoadHandler(pszModuleFileName = uiWebAdministration.dll), [RETURN=0000000029B67F60]
2014/01/14 11:38:31 Z [1968 :13972] [servwebuiprocessor.dll][webui_UIHandlerManager.cpp( 338)] [DEBUG] ==> PF_WEB_UI_FREE: uiWebAdministration.dll
2014/01/14 11:38:31 Z [1968 :13972] [servwebuiprocessor.dll][webui_UIHandlerManager.cpp( 340)] [DEBUG] <== PF_WEB_UI_FREE: uiWebAdministration.dll
2014/01/14 11:38:31 Z [1968 :13972] [servwebuiprocessor.dll][webui_UIHandlerManager.cpp( 353)] [DEBUG] <== CWebUIHandlerManager::FreeReplyData()
2014/01/14 11:38:31 Z [1968 :13972] [servwebuiprocessor.dll][webui_UIController.cpp( 399)] [DEBUG] <== CWebUIController::FlowControl(iMsgID=1011), [RETURN=1]
2014/01/14 11:38:31 Z [1968 :15004] [cmdquarantinemanager.dll][QuarantineManagerTask.cpp( 598)] [DEBUG] ::: strAttachDisplayname=FW: Interviews for Thursday and Friday.eml
2014/01/14 11:38:31 Z [1968 :15004] [cmdquarantinemanager.dll][QuarantineManagerTask.cpp( 625)] [ERROR] Send(), Failed.
2014/01/14 11:38:31 Z [1968 :13972] [servwebuiprocessor.dll][webui_UIHandlerManager.cpp( 176)] [DEBUG] ==> CWebUIHandlerManager::LoadHandler(pszModuleFileName = uiWebAdministration.dll)
2014/01/14 11:38:31 Z [1968 :13972] [servwebuiprocessor.dll][webui_UIHandlerManager.cpp( 218)] [DEBUG] <== CWebUIHandlerManager::LoadHandler(pszModuleFileName = uiWebAdministration.dll), [RETURN=0000000029B67F60]
2014/01/14 11:38:31 Z [1968 :13972] [servwebuiprocessor.dll][webui_UIHandlerManager.cpp( 338)] [DEBUG] ==> PF_WEB_UI_FREE: uiWebAdministration.dll
2014/01/14 11:38:31 Z [1968 :13972] [servwebuiprocessor.dll][webui_UIHandlerManager.cpp( 340)] [DEBUG] <== PF_WEB_UI_FREE: uiWebAdministration.dll
2014/01/14 11:38:31 Z [1968 :13972] [servwebuiprocessor.dll][webui_UIHandlerManager.cpp( 353)] [DEBUG] <== CWebUIHandlerManager::FreeReplyData()
2014/01/14 11:38:31 Z [1968 :13972] [servwebuiprocessor.dll][webui_UIController.cpp( 399)] [DEBUG] <== CWebUIController::FlowControl(iMsgID=1011), [RETURN=1]
2014/01/14 11:38:31 Z [1968 :15004] [cmdquarantinemanager.dll][QuarantineManagerTask.cpp( 598)] [DEBUG] ::: strAttachDisplayname=FW: Interviews for Thursday and Friday.eml
2014/01/14 11:38:31 Z [1968 :15004] [cmdquarantinemanager.dll][QuarantineManagerTask.cpp( 625)] [ERROR] Send(), Failed.
2014/01/14 11:38:31 Z [1968 :15004] [utilexchangeserver.dll][util_ExchangeServer.cpp( 120)] [ERROR] CExchangeServerImp::Init() - m_pExSrv->Open() failed, hr = 0x00000000, bOpenReturn=0.
2014/01/14 11:38:31 Z [1968 :15004] [utilexchangeserver.dll][util_ExchangeServer.cpp(2598)] [DEBUG] <== CExchangeServer::CExchangeServer()
2014/01/14 11:38:31 Z [1968 :15004] [utilexchangeserver.dll][util_ExchangeServer.cpp(2132)] [DEBUG] ServerRoleCache::GetServerRole=14,server=CEREX01
2014/01/14 11:38:31 Z [1968 :15004] [utilexchangeserver.dll][util_ExchangeServer.cpp(2725)] [DEBUG] CExchangeServer::GetServerRole=14
2014/01/14 11:38:31 Z [1968 :15004] [cmdquarantinemanager.dll][QuarantineManagerTask.cpp( 470)] [DEBUG] ::: iExchangePlatform = 8, iExchangeServerRole = 14
2014/01/14 11:38:31 Z [1968 :15004] [cmdquarantinemanager.dll][QuarantineManagerTask.cpp( 490)] [DEBUG] Resend: get failed ResendSwitchCdoToEws = 0, error code:0
2014/01/14 11:38:31 Z [1968 :15004] [utilexchangeserver.dll][util_ExchangeServer.cpp(2598)] [DEBUG] <== CExchangeServer::CExchangeServer()
2014/01/14 11:38:31 Z [1968 :15004] [utilexchangeserver.dll][util_ExchangeServer.cpp(2132)] [DEBUG] ServerRoleCache::GetServerRole=14,server=CEREX01
2014/01/14 11:38:31 Z [1968 :15004] [utilexchangeserver.dll][util_ExchangeServer.cpp(2725)] [DEBUG] CExchangeServer::GetServerRole=14
2014/01/14 11:38:31 Z [1968 :15004] [cmdquarantinemanager.dll][QuarantineManagerTask.cpp( 470)] [DEBUG] ::: iExchangePlatform = 8, iExchangeServerRole = 14
2014/01/14 11:38:31 Z [1968 :15004] [cmdquarantinemanager.dll][QuarantineManagerTask.cpp( 490)] [DEBUG] Resend: get failed ResendSwitchCdoToEws = 0, error code:0
Setting the hidden key "ResendSwitchCdoToEws" to "1" enables SMEX to use Exchange Web Services (EWS) API instead of Microsoft Collaborative Data Objects (CDO) API. This ensures that SMEX can send released quarantined emails to the external recipients.
To set the hidden key:
- On the Exchange Server, open the registry editor (regedit.exe).
Important: Always back up the whole registry before making any modifications. Incorrect changes to the registry can cause serious system problems.
- Go to the following registry hive:
HKEY_LOCAL_MACHINE\SOFTWARE\TrendMicro\ScanMail for Exchange\CurrentVersion
- Add the following keys:
Name: ResendSwitchCdoToEws
Type: REG_DWORD
Data value: 1Note: The Type should be a DWORD 32-bit value and the Data value could either be hexadecimal or decimal.Name: EWSInternalUrl
Type: REG_SZ
Data value: https://{Exchange server hostname or FQDN}/EWS/Exchange.asmxNote: The Type should be a string value. Do not include the braces in the Data value. - Restart the ScanMail for Microsoft Exchange Master Service.
- Resend the email.