curl / Mailing Lists / curl-users / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

cURL and IMAP - accessing a shared mailbox in an IMAP Exchange Server

From: Allan Quadros via curl-users <curl-users_at_cool.haxx.se>
Date: Wed, 22 Jul 2020 20:17:17 -0300

Hi!

According to this link (https://cutt.ly/Ka21ZXX), the appropriate way
of accessing a shared mailbox on an IMAP Exchange Server from an IMAP
client is to pass the user information as
"user_at_company\sharedmailbox". Supposedly, the client would be able to
impersonate the user and access the shared mailbox.

However, when I try to replicate this recommendation using curl, I get
login denied.

curl --url "imaps://outlook.office365.com/" --user
"allan_at_company.com\sharedmailbox:mypass"

Can someone please confirm if that is the correct way of accessing a
shared mailbox using cURL? Perhaps I am missing something or my server
settings do not allow it, so it would be good to know whether someone
successfully did this before, even if it was on a different IMAP
server.

Thanks in advance.

Allan

curl -V
curl 7.70.0 (x86_64-pc-linux-gnu) libcurl/7.70.0 OpenSSL/1.1.1 zlib/1.2.11
Release-Date: 2020-04-29
Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s
rtsp smb smbs smtp smtps telnet tftp
Features: AsynchDNS HTTPS-proxy IPv6 Largefile libz NTLM NTLM_WB SSL
TLS-SRP UnixSockets
-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2020-07-23