IT Management Suite

  • 1.  IMAP component handshake failure connecting with TLS 1.0 disabled

    Posted Jun 13, 2018 10:32 AM

    I have a workflow project that uses an IMAP Get component to connect to an Exchange server. We have a PCI requirement to have TLS 1.0 disabled on our servers and when it is disabled, the IMAP Get component throws an exception error:

    ExceptionTriggerStackTrace = "Quiksoft.EasyMail.SSL.SSLConnectionException: Error connecting to server. webmail.premierbankcard.com ---> Quiksoft.EasyMail.SSL.SSLConnectionException: Error performing Handshake. Conn ---> Quiksoft.EasyMail.SSL.ᜀ: Unable to get the HELLO bytes.-2146893007

    I'm running Workflow solution 8.0 on Windows Server 2012 R2.

    Anyone have a solution for this?

    Thanks



  • 2.  RE: IMAP component handshake failure connecting with TLS 1.0 disabled

    Posted Jun 14, 2018 03:48 AM

    You can use the Code Script component (or if you will need this often and in other WFs I'd either create a custom component).

     

    You can write in C#. (VB etc)

     

    Example (untested)

    using System.Net.Mail;
    
    ...
    
    MailMessage mail = new MailMessage("you@yourcompany.com", "user@hotmail.com");
    SmtpClient client = new SmtpClient();
    client.Port = 25;
    client.DeliveryMethod = SmtpDeliveryMethod.Network;
    client.UseDefaultCredentials = false;
    client.Host = "smtp.gmail.com";
    mail.Subject = "this is a test email.";
    mail.Body = "this is my test email body";
    client.Send(mail);

    Credit: https://stackoverflow.com/a/9201317/2895831

    client.EnableSsl = true;

     

    Component(s)

    Code (Script) Component.png Code Script Component

    https://www.symantec.com/connect/articles/code-script-component