Frappe Mail + Stalwart: JMAP settings not configured / 417 errors

Hi everyone,

I’m trying to self-host Frappe Mail using Stalwart Mail Server, but I’m completely stuck and would really appreciate guidance.

Setup

  • Frappe Mail hosted at: https://hello.greencultured.co

  • Stalwart Mail Server running on the same VM

  • Mail domain: greencultured.co

  • Mail hostname: mail.greencultured.co

  • TLS via Let’s Encrypt (certs working for HTTPS)

  • Nginx reverse proxy in front

  • Users already exist (e.g. evan.erickson@greencultured.co

Problems I’m facing

1. JMAP not configured error

When opening Mailbox in Frappe Mail UI:
JMAP settings are not configured for user evan.erickson@greencultured.co
**
2.HTTP 417 errors in browser**

Every Mail API call fails:

POST /api/method/mail.api.mail.get_mailboxes 417 (Expectation Failed)POST /api/method/mail.api.account.get_identities 417 

Traceback always ends with:

frappe.exceptions.ValidationError:JMAP settings are not configured for user 

What I’m confused about

  1. Does Frappe Mail require Stalwart JMAP, or can it work with IMAP only?

  2. What is the correct JMAP endpoint for Stalwart?

  3. Should Frappe Mail ever directly connect to port 8080?

  4. Is there a minimum working Stalwart + Frappe Mail config example on a custom domain and server

I followed the documentation of frappe and in the mail github repo also followed official frappe youtube video in which the guy did the setup, but still.

I can provide any other detail too

@Evan.erickson

>> frappe.exceptions.ValidationError:JMAP settings are not configured for user

Configure JMAP Settings in the User doc.

>> Does Frappe Mail require Stalwart JMAP, or can it work with IMAP only?

Frappe Mail is a JMAP-based client, IMAP is not supported.

>> What is the correct JMAP endpoint for Stalwart?

The Stalwart URL. Maybe an issue with your setup, as you have both Frappe site and Stalwart running on the same VM. You can confirm by logging in to the stalwart admin panel. If not, try using a different port for Stalwart HTTPS.

>> Should Frappe Mail ever directly connect to port 8080?

Since Frappe Mail is a generic client, you need to either configure the JMAP settings for the User or set up Mail Cluster and Mail Server, so new Users (signed up using Mail UI) will have the JMAP configured.

>> Is there a minimum working Stalwart + Frappe Mail config example on a custom domain and server

You can check out the Docs, it has general steps to self-host Frappe Mail.