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.comenabledswitches JMAP on.jmap.portis the port James listens on for JMAP (80 if you leave it out).url.prefixandwebsocket.url.prefixare the public addresses James puts in the session. Set them to what people will use, or apps will follow the session tolocalhost.
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-86214. 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 URL | https://your-mail-host/jmap/session |
| Signing in | Basic, or tokens from your sign in provider (OIDC) |
| Alerts | WebSocket |
| Also over JMAP | Quotas, 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.