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 https://outlook.office.com.

Also earlier people used to login using domain\userid and now they use userid@companyname.com.

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 https://outlook.office.com we are getting error.

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

1. exception caught during processing mail message; java.io.IOException: unable to create a socket

2. exception caught during processing mail message; java.io.IOException; 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

  • 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://outlook.office365.com/Inbox or imap://outlook.office365.com/ from which mail is to be read>

    also try imaps://outlook.office365.com/Inbox

    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

    Regards,

    Vikas


    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 outlook.office.com 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?

    Regards,

    Sajneev

    Add comment
    10|10000 characters needed characters exceeded

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

    Hi.

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

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

    Regards,

    Diogo

    Add comment
    10|10000 characters needed characters exceeded