Differences from Exchange
Stalwart implements the Exchange protocols on top of its own data model, which it shares with IMAP, JMAP, CalDAV and CardDAV. Where the two models differ, Stalwart follows its own, and some operations behave differently from a Microsoft Exchange server. This page lists those differences, grouped by protocol, so that an administrator can recognise them when users report them. The client pages describe the ones users meet most often: Outlook for Windows and mobile devices.
Data model
Section titled “Data model”These differences apply to every Exchange protocol:
- Calendars, address books and task lists cannot be nested. A calendar created under another folder appears at the top level of the mailbox.
- Items stay in folders of their own kind. Mail cannot be copied or moved into calendar, contacts or task folders, and an event, contact or task moves only between folders of its own kind.
- Deleted secondary calendars and address books are gone. Moving a secondary calendar or address book into Deleted Items deletes it, with its events or contacts, and it cannot be restored from there. Default calendars and address books cannot be moved there or deleted.
- Deleted events, contacts and tasks are gone. Calendars, address books and task lists have no Deleted Items folder, so deleting an event, contact or task from Outlook or an EWS client removes it permanently, even when the client moves it to Deleted Items. Only mail is kept in Deleted Items.
- There is no recoverable items folder. Deleting an item from Deleted Items removes it for good. Deleted mail can be recovered only from the archive that
archiveDeletedItemsForkeeps in the Enterprise edition. - Outlook’s hidden folders are visible to other clients. Folders that Outlook keeps for its own settings, such as Conversation Action Settings and Quick Step Settings, are ordinary mailboxes, so IMAP and JMAP clients list them.
- Out of office keeps one reply. Exchange clients can set different replies for internal and external senders, but the server sends one reply to every sender.
- Case-only category renames reach some clients late. Renaming a category by changing only its case does not reach ActiveSync devices, or cached-mode Outlook, that already synchronised the messages until they synchronise the folder in full.
- Sending to a sub-address of oneself can keep one copy. When a message is sent through SMTP submission from a sub-address of the account (
user+tag@) to the account itself, and the sent copy is saved in the folder the message is delivered to, the duplicate check drops the delivered copy. Sends from the account’s own address, which include every send from an Exchange client, are not affected.
MAPI over HTTP
Section titled “MAPI over HTTP”These differences affect classic Outlook:
- Changing the subject, body, recipients or dates of a received message is refused with
ecNotSupported; drafts, read state, flags, categories and Outlook’s own properties can still be changed. - A message whose bodies and attachments add up to more than 64 MiB once decoded cannot be opened (
ecTooBig), and cached mode skips it. - Task requests are sent as an attached message, not as a task request that the recipient can accept.
- Cached mode downloads a message again when another client marks it as read.
- Folder changes made over IMAP, JMAP or DAV can reach Outlook a few seconds late while Outlook is not waiting for notifications.
- Public folders are not available.
- Rules can be created on the Inbox only; on another folder the request answers
ecNotSupported. Outlook can save at most 256 rules. Rules with actions that have no server-side form, such as deferred delivery, client-only actions, classification, flags, marking as junk or moves to another store, are kept but never run on the server. - Delegates cannot send on behalf of another user. Members of a group account can send as the group.
- A delegate needs the rights to edit and delete all items to change or delete mail: the rights limited to the delegate’s own items grant nothing, because no creator is recorded for a message. A shared folder is visible only when all its parent folders are visible.
- Sharing levels read back differently: “Free/Busy time, subject, location” shows as “Free/Busy time”, and a grant to “Default” has no effect.
- A table of messages that the client has not sorted lists them oldest first, where Exchange lists them newest first. Outlook views always sort, so only tools that read unsorted tables notice.
- Search folders are evaluated when they are read. Body and subject searches match whole words through the full-text index, so a fragment in the middle of a word finds nothing.
- Read receipts are sent automatically only when the message asks for them at exactly one address, which matches its return path; otherwise the user confirms them.
- A meeting saved but not sent in Outlook, and then sent from a CalDAV or JMAP client, keeps its draft state, so Outlook offers Send instead of Send Update.
- Reminders are stored as calendar alarms, so a dismissed or snoozed reminder is seen by CalDAV and JMAP clients as an acknowledged or snoozed alarm. Unchecking the reminder of an event whose reminder has already fired keeps the alarm, marked as acknowledged, instead of removing it.
These differences affect Apple’s Exchange accounts and other EWS clients:
- Push notification subscriptions are not supported; clients use pull or streaming notifications.
- Subscriptions live in the memory of the server node. After a restart, or when a client reaches another cluster node, clients must subscribe again.
- The operations
CreateFolderPath,GetClientAccessToken,ReportMessage,RegisterConsent,FindAvailableMeetingTimes,FindMeetingTimeCandidatesandGetSpecificUserConfigurationanswerErrorInvalidOperation. ArchiveItemalways fails withErrorArchiveMailboxNotEnabled, because there is no archive mailbox.ResolveNamessearches the directory and one address book of the user: the one named in the request, or the default address book. It returns at most 100 entries in all, and a personal contact with the same address as a directory entry is left out.- User photos are not supported:
GetUserPhotoanswers404andSetUserPhotofails. - Attachments can be added to or removed from drafts only. Reference (cloud) attachments and item attachments other than messages are not supported.
UpdateItemchanges the subject, body and recipients of drafts only; for received mail it answersErrorInvalidOperation.CopyFolderworks for mail folders only.- Delegates are derived from folder shares and one Sieve rule that the server manages, so shares made through JMAP, CalDAV or IMAP appear as delegates. Only one delegate receives meeting copies unless the Sieve
maxRedirectsandmaxOutMessageslimits are raised, and send on behalf is never granted. - A copied meeting becomes a separate meeting with a new UID.
- Declining an event or an occurrence removes it from the calendar.
- A meeting request answered through the request message is marked as answered, and once it has been declined it reads as processed. A request answered through the calendar item instead keeps reading as unanswered.
- Inline style declarations in HTML bodies that contain unquoted non-ASCII characters, such as an unquoted CJK font name, are removed by the HTML filter. Quoted names are kept.
ActiveSync
Section titled “ActiveSync”These differences affect mobile devices and other ActiveSync clients:
- Only protocol versions 14.1 and 16.1 are offered; requests in 14.0 and 16.0 are accepted, and requests in older versions are answered with
400. - Device policies are not enforced, and remote wipe is not available.
- The Recipient Information Cache folder is not provided.
- Forwarding a meeting sends an attached copy of the event, not an invitation, and the organizer receives no forward notification.
- A 16.1 client cancels a meeting by deleting it, and a device that changes the attendees of a meeting it does not organise receives status 6.
- Sending to one unknown local recipient fails the whole send with status 116 or 183, and no delivery report is generated.
- Mail and notes ignore the conflict option: the last change wins. Editing a note appears to the device as a deletion and a new note.
- Moving a conversation moves only the messages that exist at that moment; later replies still arrive in the Inbox.
- Global address list results carry no photos, telephone numbers, title or company, and the office field is filled only for rooms and equipment, with their location. Document library (UNC or SharePoint) access is not available.
- A meeting response sends the answer only, with no message text and no proposal for a new time.
- Creating a notes or journal folder answers status 10.
- A newer Ping or Sync request from the same device does not end the older one, which stays open until its heartbeat ends.
- The protection against a device sending the same message twice lives in the in-memory store. With the local in-memory store it is lost on restart and not shared between nodes; with Stalwart Keep, Redis or a sharded in-memory store it covers the cluster. A send that takes longer than ten minutes can also be repeated.
- After a folder is emptied, the device receives a deletion for each item; an item moved to another folder also receives one redundant change in its new folder.
- When a change by another client arrives while the server is answering a device in several parts, the device may not see that change until the item changes again.
- When one device changes its folder list from two connections at once, the second request can answer status 9 (invalid synchronisation key), and the device synchronises its folder list again.
Autodiscover
Section titled “Autodiscover”These differences affect Autodiscover:
- Outlook opens shared mailboxes automatically from group membership, up to 16, not from folder shares.
- Anonymous requests receive
401, as on an Exchange server, except the SOAPGetFederationInformationoperation, which answers that the organisation is not federated.