Menu

Error Connecting IMAP to Office 365 With OAuth in 2.7.7

2022-08-04
2022-11-11
  • SylentBobNJ

    SylentBobNJ - 2022-08-04

    Hey Devs, first of all, thank you for your work on getting OAuth implemented before the impending removal of basic auth at Microsoft.

    I have a test instance of 2.7.7 installed on an Azure VM using Ubuntu Linux, apache, and MariaDB that I am using to try out the OAuth setup before I upgrade our production server.

    I bumbled through the config of the enterprise app on Azure and was eventually able to generate the access token.

    The issue I'm having is in the Mail to Ticket automation incoming mailboxes extension. I've configured it to use the OAuth client I've setup and mirrored the current setup we're using. I am now getting the message:

    Failed to initialize the mailbox: <mailboxname> Reason: Required parameter not passed: "refresh_token"</mailboxname>

    I did enable the debug logging for OAuth and see the following in the error.log file:

     IssueLog
    2022-08-04 22:30:47 | Debug   | 1     | IMAPOAuthEmailSource Start for outlook.office365.com | OAuth
    2022-08-04 22:30:47 | Debug   | 1     | IMAP Sending: TAG1 LOGOUT | OAuth
    2022-08-04 22:30:47 | Debug   | 1     | IMAP Receive: * BYE Microsoft Exchange Server IMAP4 server signing off. | OAuth
    2022-08-04 22:30:47 | Debug   | 1     | IMAP Receive: TAG1 OK LOGOUT completed. | OAuth
    2022-08-04 22:30:47 | Error   | 1     | Failed to initialize the mailbox: <mailboxname>. Reason: Required parameter not passed: "refresh_token" |
    

    I'm happy send to along anything else that might be useful to get to the bottom of it, just let me know.

    Thank you for any assistance you can provide!

     
  • Guillaume Lajarige

    Hello SylentBobNJ,

    Thanks for reaching out, can you send me the following privately (guillaume.lajarige combodo.com) so I can check internally if everything seems configured as excepted?
    - Screenshot of the OAuth object in iTop, there should be a status on it
    - Screenshot of your Azure entreprise app configuration so I can check with our IT guy

    Cheers,
    Guillaume

     
    • SylentBobNJ

      SylentBobNJ - 2022-08-08

      Thank you, Guillaume, sent.

      I appreciate it!

       

      Last edit: SylentBobNJ 2022-08-08
  • Francisco

    Francisco - 2022-11-10

    Dear Guillaume Lajarige,

    I have the same error trying to connect my ITOP with Outllok Office 385 service. My ITOP log is showing me ... Failed to initialize the mailbox: helpdesk@imocom.com.co. Reason: Required parameter not passed: "refresh_token"..

    I really apreciate your help.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.