jmap.dev

Set up JMAP on Apache James

Apache James is a Java mail server from the Apache Software Foundation. Its JMAP is the base for Twake Mail, and is set in one file: jmap.properties.

1. Turn it on

enabled=true
jmap.port=80
url.prefix=https://mail.example.com
websocket.url.prefix=wss://mail.example.com

2. Put https in front

James's JMAP port speaks plain http, so put a reverse proxy such as nginx or Caddy in front to handle https, and let it pass WebSocket upgrades through.

3. Older releases

On older James versions, apps had to ask for the standard version of JMAP with an extra header. If requests fail, check your version's docs, or send:

Accept: application/json; jmapVersion=rfc-8621

4. Let apps find you

Use the setup helper to point /.well-known/jmap on your email domain at James's session, and to make the _jmap._tcp DNS record.

Apache James
Session URLhttps://your-mail-host/jmap/session
Signing inBasic, or tokens from your sign in provider (OIDC)
AlertsWebSocket
Also over JMAPQuotas, and some of James's own extras

See James's JMAP settings page for everything else in jmap.properties.

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 James offers, then try a request in the playground.

Words you don't know? See the glossary.

Check my server DNS and redirect helper