Access to Microsoft 365
- Microsoft Graph with delegated OAuth 2.0 only. InCloseMail acts only as the signed-in person, on what that person can already open. No application permissions, no client secret, no server of ours in between: mail goes only between the PC and Microsoft.
- Sign-in: Microsoft Entra ID through MSAL (public client), with the Windows account broker or the system browser, so Conditional Access, MFA and sign-in logs apply as usual. No basic authentication anywhere. InCloseMail’s multi-tenant app, or your own app registration and tenant (policies
ClientId,TenantId). Permissions: see For administrators. - Other protocols: no POP, no ActiveSync. EWS only for Autodiscover of shared mailboxes. SMTP AUTH (OAuth) only if a user turns on sending through SMTP. IMAP only in a diagnostic the user starts. Turning off IMAP, POP and ActiveSync for your tenant breaks nothing.
- Revoking access: an account disabled or deleted in Entra ID is signed out and its mail deleted from the PC as soon as Microsoft says so. Revoked sessions stop all access; with
WipeAfterOfflineDays, the mail on the PC is deleted after that many days.
Data at rest on the PC
- Mail kept for offline use (like Outlook’s Cached Exchange Mode; by default 30 days of the folders opened): a SQLCipher-encrypted database per account, its random key protected by Windows DPAPI for the Windows user. Attachments, only if kept: AES-GCM-encrypted files.
- Sign-in tokens: MSAL token cache encrypted with DPAPI, per Windows user.
- Opened attachments: another app needs a file, so a read-only copy goes to the user’s %TEMP%\InCloseMail, deleted after a day (or
TempFileMinutes), at sign-out and when InCloseMail locks. - Sign-out deletes the account’s mail, attachments and sign-in from the PC; so does uninstalling, unless the person uninstalling unchecks it. An optional app lock (Windows Hello or an authenticator code) hides mail when the PC is left.
Data in transit
HTTPS (TLS, through Windows) to Microsoft only, for all mail, calendar and contact data. Apart from Microsoft: the update check (GitHub) and a daily anonymous usage count (a random install ID and version numbers, never mail or names), both of which can be turned off; details in What InCloseMail uses.
Admin policies for mail on the PC
Set through Group Policy, Intune (ADMX import) or the registry (HKLM or HKCU\SOFTWARE\Policies\InCloseMail), in the InCloseMail → Mail on this PC section of the templates. Users can’t change them, and Help → About → Policies shows every policy in force, where it came from, and what’s kept on the PC, with Copy for your audit file.
| Policy (registry value) | What it does | Controls |
|---|---|---|
OnlineOnly | Keeps no mail on the PC: read straight from Microsoft 365, any copy deleted. | A.8.12, A.8.10; CC6.1, CC6.7; CE secure configuration |
CacheMaxDays | Keeps at most N days of mail (7 to 7300); older mail is deleted. | A.8.10, A.5.12; CC6.5 |
CacheAttachments | Attachments always or never kept on the PC. | A.8.12; CC6.7 |
CacheSharedMailboxes | Shared mailboxes always or never kept on the PC. | A.8.12, A.5.15; CC6.1 |
TempFileMinutes | Copies of opened attachments deleted after N minutes and when the app closes. | A.8.10, A.8.12; CC6.5 |
BlockDownloads | Like Outlook on the web’s “no downloads on unmanaged devices”: attachments preview, but nothing is saved, opened in another app, dragged out or exported. | A.8.12, A.7.10; CC6.7; CE BYOD |
DisableOneDriveLinks | Turns off uploading large files to OneDrive; never asks for OneDrive access. | A.8.12, A.5.14; CC6.7 |
WipeAfterOfflineDays | Deletes mail on the PC after N days without reaching Microsoft 365 (lost PC, revoked sessions). | A.8.1, A.5.11; CC6.5; CE device loss |
LocalDataUnmanagedOnly | Applies the policies above only on PCs not joined to a domain or Entra ID, for a mixed fleet. | A.8.1, A.6.7; CE BYOD |
DisableAiAgents, MailboxChanges, DisableScriptRules, SyncSettings, DisableUsageStats | Turn off AI agent access, keep mailboxes read-only, turn off script rules, turn off settings sync, turn off the usage count. | A.8.9, A.8.19; CC6.1, CC8.1 |