Backup Exec System Recovery (BESR) or Symantec System Recovery (SSR) fails to send an email when mail server is using Secure Socket Layer (SSL) or Transport Layer Security (TLS)

Article:TECH87551  |  Created: 2009-01-28  |  Updated: 2013-12-16  |  Article URL http://www.symantec.com/docs/TECH87551
Article Type
Technical Solution


Subject

Issue



Backup Exec System Recovery (BESR) or Symantec System Recovery (SSR) fails to send an email when mail server is using Secure Socket Layer (SSL) or Transport Layer Security (TLS)


Cause



Backup Exec System Recovery (BESR) or Symantec System Recovery (SSR) SMTP notification option does not support SSL & TLS security


Solution



As a workaround, a VB Script can be utilized to send a notification. However, running a VB Script may be blocked by a provider or mail server.
 
Create the following as a text file and then save it as a .VBS file:
 

'Send a test SMTP email using Microsoft's CDO

option explicit

DIM userName
DIM password
DIM cdoNone
DIM cdoBasic
DIM cdoNTLM
DIM authenticateType

cdoNone = 0
cdoBasic = 1
cdoNTLM = 2


"Set username, password and server authentication type here, the authentication types are above
userName = "username"
password = "password"
authenticateType = cdoBasic


Call SendMessage( "smtp.server.com", "emailid@smtp.server.com <mailto:emailid@smtp.server.com>", "email test", "this is a test!" )


"Sends an SMTP message using the passed parameters
Sub SendMessage( sSMTPServer, sTo, sSubject, sText)

               Dim iMsg
               Dim iConf
               Dim Flds

               '' Configure message fields
               Set iConf = CreateObject("CDO.Configuration")
               Set Flds = iConf.Fields
               Flds("<http://schemas.microsoft.com/cdo/configuration/sendusing>")     = 2          'cdoSendUsingPort
               Flds("<http://schemas.microsoft.com/cdo/configuration/sendemailaddress>")     = sTo
               Flds("<http://schemas.microsoft.com/cdo/configuration/smtpserver>")   = sSMTPServer
               Flds("<http://schemas.microsoft.com/cdo/configuration/smtpserverport>")          = 25        'most common SMTP port
               Flds("<http://schemas.microsoft.com/cdo/configuration/smtpauthenticate>")      = authenticateType
               Flds("<http://schemas.microsoft.com/cdo/configuration/sendusername>")           = userName       'the username to send as
               Flds("<http://schemas.microsoft.com/cdo/configuration/sendpassword>")            = password
               Flds("<http://schemas.microsoft.com/cdo/configuration/smtpusessl>")   = False                  ' server uses ssl
               Flds.Update

               '' Send message
               Set iMsg = CreateObject("CDO.Message")
               Set iMsg.Configuration = iConf
               iMsg.To                                = sTo
               iMsg.From          = sTo
               iMsg.Sender      = sTo
               iMsg.Subject      = sSubject
               iMsg.TextBody  = sText
               iMsg.Send

               WScript.Echo "Message sent successfully!"

               End Sub

Ensure that you have included the username and password that BESR or SSR is using for its service, and run the script.  If this fails, try using a different username and password. Once you have one that works, ensure that it has the rights to create images. Then stop the BESR or SSR service, provide the same credentials for System Recovery to use as its service account, restart the service and create a backup.  See attached file as an example.  To use the attached script file after modifying it, remove the .good.
 
Also, if the BESR / SSR is running on a 64bit server, then the 32bit CSCRIPT.EXE will need to be used.  This is related to the fact that VProAuto.dll is not compatible with 64 bit versions of wscript and cscript.  If no path to the wcript or csript executable is specified, the system will default to using the incompatible 64 bit versions of these executables.

C:\windows\SysWOW64\cscript.exe
 
 
In order to utilize as a post command perform the following steps:
 
1)  create a batch file which includes the following:
 
C:\Windows\SysWOW64\cscript.exe  <path:\><script name>.vbs
 
2)  register the 32bit version of the CDOSYS.DLL from an elevated command prompt
 
REGSVR32 "C:\WINDOWS\SYSWOW64\CDOSYS.DLL"
 
3)  Assign the batch file to the backup job and run

Attachments

TestCDO_email_323802.vbs_323802.good (2 kBytes)

Supplemental Materials

Value1543150
Description

Error ECE3006A "Unable to send notification email. The transport failed to connect to the server." on Exchange 2007




Article URL http://www.symantec.com/docs/TECH87551


Terms of use for this information are found in Legal Notices