Outlook for Windows
Classic Outlook for Windows connects to Stalwart as it would to an Exchange server, over MAPI over HTTP. It finds the server through Autodiscover, signs in with the account’s email address and password, and synchronises mail, calendars, contacts, tasks and notes with the same account that other clients use. This page lists what the administrator prepares before users add their accounts, and how Outlook behaves once connected.
Outlook editions
Section titled “Outlook editions”Classic Outlook is the Windows client to use. It has been tested from Office LTSC 2024, in both cached and online mode.
The new Outlook for Windows, the default mail app on recent Windows releases and the toggle at the top of classic Outlook, does not offer on-premises Exchange accounts, and it has not been tested with Stalwart. Users who see the toggle should leave it off.
Prerequisites
Section titled “Prerequisites”Outlook can add an account only when discovery and sign-in both succeed, so the following must be in place first:
- Exchange support is enabled.
autodiscover.<domain>resolves to the server, or an_autodiscover._tcpSRV record names it, as described in DNS records.- The server’s certificate is trusted on the Windows machine and covers the discovery name and the mail host. A certificate from a public authority, such as one obtained through ACME, needs nothing more. A private certificate authority must be imported into the machine’s trusted root store (
Cert:\LocalMachine\Root). - Accounts that use two-factor authentication have an app password, since Outlook signs in with Basic authentication.
- For a complete address book, directory queries are enabled.
Add the account
Section titled “Add the account”Outlook creates the profile from Autodiscover. The steps are those of any Exchange account:
- Open the account setup, from the first start of Outlook or from File › Add Account, and enter the email address.
- When Outlook offers a choice of account type under Advanced setup, choose Exchange. Outlook then runs Autodiscover against the domain of the address.
- In the Windows Security dialog that follows, enter the full email address as the user name and the account password or app password. Selecting Remember my credentials stores them in the Windows credential manager, so that Outlook does not ask again at every start.
- Finish the wizard and restart Outlook if it asks.
Because Stalwart has no NTLM or Kerberos, Outlook never signs in silently with the Windows session, and the credential dialog appears for every new profile. A login of the form DOMAIN\user is accepted as well: the server removes the domain part.
Microsoft 365 lookups
Section titled “Microsoft 365 lookups”Before it tries the domain, Outlook checks whether the address belongs to Microsoft 365, and it reuses the result of earlier discoveries. On a machine where discovery picks the wrong server, or keeps an outdated result after the DNS records were changed, the following registry values, all DWORD set to 1 under HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Outlook\AutoDiscover, make Outlook skip those steps:
| Value | Effect |
|---|---|
ExcludeExplicitO365Endpoint | Skips the Microsoft 365 lookup |
ExcludeScpLookup | Skips the Active Directory service connection point, which only domain-joined machines use |
ExcludeLastKnownGoodUrl | Discards the Autodiscover URL that worked last time |
They are not needed where discovery already finds the server. Outlook must also keep MAPI over HTTP enabled: the value MapiHttpDisabled under HKEY_CURRENT_USER\Software\Microsoft\Exchange, if present, must be 0.
Cached and online mode
Section titled “Cached and online mode”Outlook works in one of two modes, and both are supported. In cached mode, the default, Outlook keeps a copy of the mailbox in a local data file, synchronises changes in both directions, and downloads the offline address book. In online mode it reads everything from the server as needed and keeps no local copy. The mode is chosen in the account settings (Use Cached Exchange Mode), or enforced with the Outlook group policy for cached mode.
Changes made by other clients reach Outlook through notifications. Folder changes made over IMAP, JMAP or DAV appear at once while Outlook waits for notifications, and otherwise within a few seconds. In cached mode, a message that another client marks as read is downloaded again, because the server records read state together with the message’s other changes.
Address book
Section titled “Address book”Outlook’s address book shows the global address list through NSPI, the MAPI address book service. Mailing lists appear as distribution lists. Their members are listed when Outlook looks the list up on the server, but not in the offline address book. In cached mode Outlook also downloads the offline address book and resolves names from it; the download runs in the background. Entries carry the name and email addresses of each account, but no telephone numbers, title, company or photos. Room and equipment resources also carry their location and capacity.
Shared mailboxes
Section titled “Shared mailboxes”Outlook opens the shared mailboxes of the user automatically, as it does with Exchange’s automapping. Stalwart’s shared mailboxes are group accounts, and Autodiscover lists the groups that the account is a member of, for Outlook to add as additional mailboxes. The list holds at most 16 groups, the first 16 in order of display name, so a user in more groups does not see the others added. Members of a group can send as the group. A mailbox shared with a user through folder sharing, rather than group membership, is not added automatically.
Delegates and folder sharing
Section titled “Delegates and folder sharing”Delegates and folder permissions set in Outlook are stored as Stalwart sharing rights. A share made in Outlook therefore applies to JMAP, CalDAV and IMAP clients too, and shares made through those protocols appear in Outlook as delegates and permissions. A few behaviours differ from Exchange:
- A delegate cannot send on behalf of the mailbox owner.
- A delegate needs the right to edit all items, and to delete all items, to change or delete mail in a shared folder. The rights to edit or delete only the delegate’s own items grant nothing for mail, because Stalwart does not record who created a message. A shared folder is visible only when all its parent folders are visible to the delegate.
- Only one delegate receives copies of meeting requests, unless the Sieve
maxRedirectsandmaxOutMessageslimits are raised, because the copies are sent by a Sieve rule that the server manages for the owner. - Permission levels read back in simplified form: “Free/Busy time, subject, location” shows as “Free/Busy time”, and a grant to “Default” has no effect.
Rules and out of office
Section titled “Rules and out of office”Rules created in Outlook’s Rules and Alerts are stored on the server as mail rules and run there as Sieve, so they apply while Outlook is closed and for mail read in any client. Rules belong to the Inbox: Outlook cannot create a rule on another folder, and it cannot save more than 256 rules. A rule whose action has no server-side equivalent, such as a deferred delivery, a client-only rule or a flag, is kept but never runs on the server. The server translates each rule into a mail rule, so size conditions are strict (“at least 100 KB” matches messages larger than 100 KB) and a move to the Junk folder also marks the message as spam; Outlook rules describes the differences.
Automatic replies set in Outlook become the account’s vacation response. Outlook’s internal reply text is used for every sender, and the separate text for external senders is not used. The reply is limited to 2 KiB, counted on the HTML that Outlook sends, markup included; a longer reply is refused with The OOF reply exceeds the maximum length.
Outlook limitations
Section titled “Outlook limitations”Some Outlook operations behave differently from an Exchange server:
- Received messages cannot be edited. Changing the subject, body, recipients or dates of a received message is refused, because rebuilding it would discard its original headers and signatures. Drafts can be edited freely, and read state, flags, categories and other properties of received messages can be changed.
- Very large items cannot be opened. A message whose bodies and attachments add up to more than 64 MiB once decoded cannot be opened, and cached mode skips it without an error. Other protocols are not affected.
- Deleted events, contacts and tasks cannot be restored. Deleting one of them, including Outlook’s move to Deleted Items, removes it permanently, because calendars and address books have no Deleted Items folder. Deleted mail goes to Deleted Items as usual.
- Task requests arrive as attachments. A task assigned from Outlook reaches the recipient as an attached message, not as a task request that can be accepted.
- No public folders.
- Search folders match whole words. Body and subject searches use the full-text index, so a fragment in the middle of a word finds nothing.
- Unsent meetings keep their draft state. A meeting saved in Outlook but sent from a CalDAV or JMAP client still shows Send instead of Send Update in Outlook.
Differences from Exchange lists the remaining differences.