Were running Apache Camel (2.25.2) and connecting to mailboxes via imaps. Our configuration works but not for shared mailboxes. Connect string we use to connect "normal" mailbox:
imaps://srv.Domain:993?username=UserMb@Domain&password=Pass&folderName=Inbox&consumer.delay=60000©To=done&delete=true&mail.imap.starttls.enable=true&mapMailMessage=true
This works fine. Camel is able to read/copy etc. mails from inbox and other folders. For connecting to shared mailbox we use same string only adjusting username=.
For example:
imaps://srv.Domain:993?username=UserMb@Domain\UserMb2&password=Pass&folderName=Inbox&...
.. and it is not working.
Ive already tried Domain\UserMb\UserMb2 or UserMb@Domain\UserMb2@Domain or UserMb@Domain\UserMb2 etc. and also
imaps://UserMb@Domain:Pass@srv.Domain:993?folderName=Inbox...
All works fine for UserMb until shared mailbox UserMb2 is added.
Ive also rechecked in Thunderbird, mapping UserMb2 as shared mailbox using UserMb@Domain\UserMb2@Domain which works fine.
Ive already read something similiar here Possible to connect with a Microsoft Exchange shared mailbox via service account using JavaMail and Apache Camel Mail (IMAP)? but without a correct solution for us.
Does anyone have an idea? Thanks!