jmap.dev

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-xapian

Xapian 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 jmap

Make 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: twoskip

4. Build the conversations databases

For mailboxes that already exist, build each person's conversations database once:

ctl_conversationsdb -b -r

Do 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 URLhttps://your-mail-host/.well-known/jmap
Signing inUsually your username and password (Basic)
AlertsEventSource and WebSocket
Also over JMAPContacts, 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.

Check my server DNS and redirect helper