Re: cURL and IMAP - accessing a shared mailbox in an IMAP Exchange Server
Date: Sun, 26 Jul 2020 01:33:17 -0300
Thanks Mike. I've tried these approaches and other variations but none
of them seems to work.
"quant" is the shared mailbox in this case:
curl --url "imaps://outlook.office365.com/" --user "company.com\allan\quant"
curl --url "imaps://outlook.office365.com/" --user "company.com/allan/quant"
curl --url "imaps://outlook.office365.com/" --user
"company.com\allan_at_company.com\quant:pass"
curl --url "imaps://outlook.office365.com/" --user
"company.com\allan_at_company.com\quant:pass"
curl --url "imaps://outlook.office365.com/" --user
"company.com/allan_at_company.com/quant:pass"
curl --url "imaps://outlook.office365.com/" --user
"allan_at_company\quant_at_company:pass"
curl --url "imaps://outlook.office365.com/" --user "allan_at_quant@company:pass"
and many many many other combinations...
I am inclined to think that curl is not interpreting the user argument
in the way the server is expecting, like you said.
Allan
On Fri, Jul 24, 2020 at 2:51 PM Norton, Mike <mikenorton_at_pwsd76.ab.ca> wrote:
>
> > --user "allan_at_company.com\sharedmailbox:mypass"
>
> My version of Curl's manpage says this about --user:
>
> "To specify the domain name use either Down-Level Logon Name or UPN (User Principal Name) formats. For example, EXAMPLE\user and user_at_example.com respectively."
>
> So I wonder if Curl is noticing the backslash and interpreting your input as domain="allan_at_company.com" and username="sharedmailbox". Or maybe Curl is NOT interpreting it that way but that's how Exchange is expecting it.
>
> Maybe Curl is interpreting your input as username="allan" and domain="company.com\sharedmailbox".
>
> Have you tried any variations of the down-level logon name format? E.g. "COMPANY\allan\sharedmailbox"? Or maybe the reverse? E.g. "sharedmailbox_at_allan@company.com"? Just some guesses to maybe trick whatever wrong interpretation is happening into behaving.
>
> -mn
>
-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2020-07-26