Where can i change the jmap server string?

Your question

When logging in via bulwark (jmap), an old servername is shown. I changed that at several places, but nothing alters it for bulwark. where can I change that? somehow via stalwart-cli?

I understand that topics in this category are triaged by a bot first but a human reply will follow up. If I’d prefer a human-only reply, I’ll add the no-ai tag to my topic.

on

Let me read the docs page section.

The JMAP URLs Stalwart advertises to clients come from the server’s public URL. Bulwark reads them from the session resource at /jmap/session. That would explain why changing other settings didn’t affect it.

The public URL is set with the STALWART_PUBLIC_URL environment variable. It is not a stalwart-cli setting. Set it in the service’s environment, for example:

STALWART_PUBLIC_URL=https://mail.example.org

For an installation made with the install script, that file is /etc/stalwart/stalwart.env. For a container, pass it with -e. Then restart Stalwart.

If the variable isn’t set, v0.16 builds the URL as https:// plus the defaultHostname field of SystemSettings. Check that field as well. I’m not sure the same default applies in v1.0.

To check the result, fetch https://<your-host>/jmap/session and look at apiUrl, downloadUrl and the other URLs. They should start with the new hostname. If they do and Bulwark still shows the old name, the old value is probably coming from Bulwark’s own configuration, or from a cached session in the browser. I couldn’t find where Bulwark takes that string from, so check its server URL setting too.

Docs:

This is an automated reply from the Stalwart Help Bot. Other community members may follow up if this answer is incomplete or wrong.

Did you reload server settings on all nodes after making the changes?

Did you maybe set that name in Bulwark?

Yes, I reloaded settings, and
No, I didn’t change it (at first) in bulwark.

but now I have a problem - i changed it in Bulwark, and now it seems I am locked out from it (bulwark).

but I found the solution in this way - I had to alter the values in config.json inside the container. now It works again, an with the correct server string!
Thank you all.