For administrators

Setting up Stalwart for Larvatus

Larvatus has no server of its own, so everything it does goes through your Stalwart server. It works out of the box, but this page covers a few settings you can optimize for this app.

Where to find Stalwart

If you don't use it already, Stalwart is a free, open-source mail server made by Stalwart Labs. You can download it and read its documentation at stalw.art. Larvatus needs version 1.0.3 or later.

Once it's running, Stalwart has two web interfaces at the same address:

Out of the box

On a current Stalwart install with an HTTPS address, Larvatus will work without any changes:

Larvatus asks for one scope, urn:stalwart:oauth:scope:settings. It covers a person's account settings, which is where Stalwart keeps masked addresses. It doesn't reach their mail, contacts, calendars, or password, or anything in the web admin. This is shown on the consent screen.

Because Larvatus registers itself anonymously, Stalwart's consent screen marks it as unverified. Every app that registers this way gets that label, if you have other people using your server you might want to warn them.

Set the public address

Stalwart builds the addresses in its sign-in metadata from its public HTTPS address. Larvatus takes the server address a person types, reads that metadata, and expects sign-in and JMAP (the protocol it uses to manage addresses) to be at that same address. If Stalwart thinks its public address is something else, sign-in fails.

Raise the address limit

Stalwart lets each person have 5 masked addresses by default. That runs out fast when people give every site its own address, which is the whole idea.

Switched-off addresses still count toward the limit, only deleting one frees up room. Larvatus can't read the limit, so people find out when they reach it and Larvatus shows Stalwart's "You have exceeded your account quota" message.

Keep people signed in

Token lifetimes are under Settings › Authentication › OIDC Provider. Values are in milliseconds, and changes take effect after you reload settings.

Two things sign people out of Larvatus:

People can remove Larvatus under Connected Applications in the Account Manager, and choosing Disconnect in Larvatus revokes its sign-in on the server too.

Domains

Stalwart always uses the domain of the person's primary account name. Larvatus can't change it, so an account named sam@example.org gets addresses like harbor.p3w8zt@example.org.

If something goes wrong

Stalwart's own documentation on masked addresses and OAuth has the full details. To report another bug, you are welcome to contact support.