Logstash Imap for shared mailbox

Hello,

I have a mailbox bind with shared mailbox on office365.
My mailbox is define: user@mydomain.com
My shared mailbox is define: sharedmailbox01@subdomain.mydomain.com

Reffering to this article : Access Shared mailbox using thunderbird
Using username with \ character; I define the configuration file as below :

input {
imap {
host => "outlook.office365.com"
user => "user@mydomain.com\sharedmailbox01@subdomain.mydomain.com"
password => "myUserPassWord"
secure => true
}
}

The log file indicate error message as:

A plugin had an unrecoverable error. Will restart this plugin.
Plugin: <LogStash::Inputs::IMAP [connexion info] Error: LOGIN failed.", :level=>:error

I found a article here indicate that this method not work anymore (and know as > the only way to access from mobile using imap configuration)

Checking on the input imap documentation: I didn't find any clue on parameter to use the shared mailbox.

Also about IMAP v4 protocol, we can access and select mailbox using the keyword SELECT as define on RFC3501
And ruby implement it on NET.IMAP: SELECT method
This method is not used currently on imap module

Does anyone has experience a workaround for this issue?

Thank you for your help,
Best regards,
Alex.

Hello,

Actually, I finally found out the issue.
I was using the full mail address instead of alias of mailbox.
So the working syntax are :

input {
imap {
host => "outlook.office365.com"
user => "user@mydomain.com\sharedmailboxAlias"
password => "myUserPassWord"
secure => true
}
}

The sharedmailboxAlias is not the address mail but the alias of the shared mailbox.

Best regards,
Alex.