Skip to Content

Sender Mail adapter issue

Hi All,

We have a sender mail adapter. We are using single stack SAP PI 7.4 SP08.

Everyone in the company earlier used to use https://mail.o365.<companyname>.com and this have now changed to

Also earlier people used to login using domain\userid and now they use

We have validated the same for our userid that we use for our mail adapter and we can normally login from web. However when we are using the we are getting error.

We tried using both domain\userid and but we are getting 2 types of error.

1. exception caught during processing mail message; unable to create a socket

2. exception caught during processing mail message;; unexpected password response read - ERR Logon failure, unknown username or bad password. - But the next moment we use webmail and try giving the same user id and password it works without any issue.

Kindly help me figure out what is the fix and where the error can be.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

4 Answers

  • Best Answer
    Jul 08, 2016 at 02:05 PM

    Hi All,

    Many thanks for your response. The issue was the domain of the mailbox had changed which was outside the FW and was blocked. Network team did the required change and we can connect.

    Many thanks.

    Add comment
    10|10000 characters needed characters exceeded

  • Jun 30, 2016 at 05:07 AM

    Hi Shaibayan,

    You can not use HTTP.

    first of all do the following-

    1. Login to the office365 via web click on settings icon and click Mail at bottom. From the left hand side choose POP and IMAP setting . Check if IMAP is enabled.

    2. In the sender mail adapter choose protocol as IMAP4

    in the URL - give imap:// or imap:// from which mail is to be read>

    also try imaps://

    Choose Plain authentication and in username give the complete email id.

    If now you get socket exception then this is port issue. From the settings of office 365 you will also be able to know the ports .which must be enabled from PI server



    Capture.JPG (34.2 kB)
    Capture1.JPG (58.0 kB)
    Add comment
    10|10000 characters needed characters exceeded

  • Jun 27, 2016 at 04:34 AM

    Hi Shibayan,

    Unable to create socket error is generally caused due to port not being open to the system.

    Ask basis to perform telnet from PI system to and see it it works.

    Not sure how you are getting the second error in the same channel though. Can you explain in more detail when do you get each error?



    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 07, 2016 at 05:31 PM


    I configured a sender mail as Vikas recommended, using imaps:// and it is working fine.

    Maybe you have to use INBOX in caps to make it works.



    Add comment
    10|10000 characters needed characters exceeded