Skip to Content

Though it is simple configuration steps in HCI, I spent lot of time understanding how Gmail is accepting authentication.. I would like to share my experiences on this.

I am assuming readers has basic knowledge of creating IFlow and Sender SOAP communication channel in HCI.


Scenario:  SOAP to MAIL



/wp-content/uploads/2016/09/1_1045622.png

Mail communication channel parameters


/wp-content/uploads/2016/09/2_1045623.png

Deploy Gmail Credentials in the Artifacts 


/wp-content/uploads/2016/09/3_1045624.png

When you provide your Gmail user ID and password, first instance you may get below error in HCI

Fault:534-5.7.9 Application-specific password required. Learn more at

534 5.7.9

AuthenticationFailedException:534-5.7.9 Application-specific password required

Point to be noted here is Gmail does not accept any direct connectivity from HCI, it expects 2 way connectivity as below.

Enable 2-step verification and set a App password for HCI.

/wp-content/uploads/2016/09/4_1045625.png

Select other custom app and generate a password in app passwords

/wp-content/uploads/2016/09/5_1045626.png

/wp-content/uploads/2016/09/6_1045627.png

Copy 16 character password and provide in HCI artifacts. Now it works for you..

/wp-content/uploads/2016/09/7_1045628.png

To report this post you need to login first.

8 Comments

You must be Logged on to comment or reply to a post.

  1. Pawel Kobylinski

    Hi Madhav,

    firstly thanks for this very ‘walk through’ but i have a question which answer to, i hope, you would know. so the situation is that i used in my flow ‘parallel  multicast’ and my message (which is soap request) reaches both web service and smtp server. my client (sproxy) expects response from web service but instead i receive exact copy of the content sent to SMTP server which leads to en exception in sproxy. do you know perhaps how could i make it stop, i mean how could i suppress this smtp respons and leave only response from web service ?

     

    best regards

    pawel

    (0) 
  2. Sidharth Mehta

    Hi,

    i am getting connection time out while run the iflow with mail adapter have google account smtp, but in connectivity test with same account and user password response is successfully reached host.

     

    Error code –

    javax.mail.MessagingException: Exception reading response;
      nested exception is:java.net.SocketTimeoutException: Read timed out (local port 47197 to address 10.104.183.234 (vsa3148377.phx.od.sap.biz), remote port 465 to address 74.125.28.109 (pc-in-f109.1e100.net)), cause: java.net.SocketTimeoutException:  Read timed out (local port 47197 to address 10.104.183.234 (vsa3148377.phx.od.sap.biz),  remote port 465 to address 74.125.28.109 (pc-in-f109.1e100.net))

     

    Please Help

    Regards,

    Sidharth Mehta

    (0) 
  3. Federico Bellizia

    Certificate problems?

     

    LastError = org.apache.camel.CamelExchangeException: Parallel processing failed for number 1. Exchange[ID-vsa3689155-56028-1519058190794-353-7417]. Caused by: [org.apache.camel.RuntimeCamelException – javax.mail.MessagingException: Could not convert socket to TLS;
    nested exception is:
    javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target], cause: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

     

    (0) 
    1. Amulya Lewis

      Hello Federico,

      Did you resolve this issue? I am too getting something similar.

      connectivity test seems fine, however giving out PKIX path building fails.

      Thanks and Regards,

      Amulya

      (0) 

Leave a Reply