Repository navigation
Add Exchange Server accounts over EWS with NTLM - #299
Merged
Merged
Conversation
NTLMv2 with a MIC and a channel binding, since Exchange 2019 CU14 turns on Extended Protection by default.
NTLM authenticates a connection, so each account owns one and reconnects once on a drop.
Folders and items by EWS sync state, one look per folder, polled.
… new folders from the window Marking read and deleting ask Exchange not to send read receipts itself. A saved draft goes out through SendItem, so the server uses the recipients it holds, Bcc included. A folder with no usable sync state reads only its state and files the window's mail. RSA-PSS certificates take their channel binding hash from the signature parameters, and hyper's server feature is only built for the fake server. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
1 task done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds Exchange Server accounts for companies that run Exchange on their own servers and keep IMAP closed. Penguin Mail talks to the server's Exchange Web Services address (
https://host/EWS/Exchange.asmx) and signs in asDOMAIN\userwith NTLM.Fixes #207
What it does
https://mail.<domain>/EWS/Exchange.asmx), the user name and the password.The new
mailrs-ewscrate builds on Thunderbird'sewscrate (MPL-2.0) for the SOAP types. NTLM is our own, onmd4,md-5andhmac. Two requests are written by hand becauseews0.1.2 gets them wrong or lacks them: the flag update (the crate drops thet:prefix onFlagStatus) and FindItem withQueryString.How it was checked
There is no Exchange server to test against, so this has run against a fake EWS server in the tests, not a real Exchange. The fake server checks the NTLM proof, the MIC, the target name and the channel binding. The NTLM client was also checked against two implementations we did not write:
curl --ntlmagainst the fake server, andpyspnegoas the server, with a non-ASCII password, SHA-256 and SHA-384 certificates, and a wrong channel binding that it refused.Known limits