Set up JMAP on Cyrus IMAP
Cyrus IMAP is the server behind Fastmail, and much of JMAP was first built in it. JMAP is part of Cyrus 3, but you need to switch it on.
1. A build with JMAP
Packaged Cyrus often has it already. If you build it yourself, Cyrus's docs give the options:
./configure --enable-http --enable-jmap --enable-xapianXapian gives JMAP its full text search.
2. Turn on the JMAP module
In imapd.conf, add jmap to the web modules, alongside any you already use:
httpmodules: caldav carddav jmapMake sure cyrus.conf runs the web service (httpd) on an https port.
3. Turn on conversations
JMAP needs Cyrus's conversations feature, which groups messages into threads:
conversations: 1
conversations_db: twoskip4. Build the conversations databases
For mailboxes that already exist, build each person's conversations database once:
ctl_conversationsdb -b -rDo the same after upgrading from an older Cyrus 3 release, as the format has changed between versions.
5. Let apps find you
Cyrus answers /.well-known/jmap on its own web port. If your email domain is different from the server's name, use the setup helper, choose Cyrus IMAP, and it will point your domain there.
| Cyrus IMAP | |
|---|---|
| Session URL | https://your-mail-host/.well-known/jmap |
| Signing in | Usually your username and password (Basic) |
| Alerts | EventSource and WebSocket |
| Also over JMAP | Contacts, calendars (draft), Sieve filters and quotas |
Cyrus's own JMAP set up page has the full details for your version.
Check it works
Put your email domain into the checker. It should find the session and say it asks you to sign in. Add a token or password to see the full list of what Cyrus offers, then try a request in the playground.
Words you don't know? See the glossary.