All help articles

One sign-in for everything (single sign-on)

Webmail, the team manager at /manage and the admin panel all sign in with a Zappocity account: one email and password (at zappo.city) for every Zappocity product. Zappocity is a standard OpenID Connect provider, so later products (xi.ht) sign in the same way.

Turning it on

In the admin panel, Settings → Single sign-on → Connect to Zappocity (sudo corpsuite sso connect). That:

  1. registers Mailocity with the Zappocity on the same server (under Products → Single sign-on applications), with its return addresses on every webmail, sign-in, team manager and admin host;
  2. gives every mailbox and every staff member a Zappocity account with the same email and password, already confirmed, so nobody has to do anything (new mailboxes and staff get one within a minute);
  3. turns single sign-on on. From then on, passwords sign in nowhere else: the sign-in pages show only Sign in with Zappocity, and mail apps need app passwords (see below). Tell people before you connect.

Run Connect again after adding a host name, so its return address is registered.

What people see

A Zappocity account opens a mailbox only once its email is confirmed. If someone signed up at Zappocity with a mailbox's address and never confirmed it, the mailbox's owner takes that account over at the next sync (with the mailbox's password) and whoever made it is signed out.

New accounts

While single sign-on is on, new accounts are made through zappo.city: the signup page and teams' join pages send people there to sign in, or to create their Zappocity account (with a confirmed email), and then they choose their address. The new mailbox has no password of its own and is linked to that Zappocity account. See Plans and signup and letting people join a team.

Mailboxes that team admins or staff add by hand still get the password they set, and a Zappocity account with it at the next sync, as before; the person signs in with it at zappo.city and can change it there.

Signing out

Signing out anywhere signs out everywhere that sign-in reached:

Settings live in Zappocity

For a mailbox that signs in with Zappocity, webmail's Settings show mail settings only (mail apps, app passwords, addresses, plus addresses, signatures, spam, filters, import and the like), with a card linking to the Zappocity account for the password, two-step sign-in (codes, security keys and passkeys), where you are signed in, security alerts, recent sign-ins and invitations. Signing out everywhere there ends webmail sessions too.

Passwords while it is on

While single sign-on is on, everyone signs in through zappo.city:

Making an app password asks you to confirm it's you on zappo.city (your password, and your code when two-step sign-in is on) unless you signed in there in the last 10 minutes: Confirm on Zappocity, then Make app password again. You stay signed in throughout.

There is no setting to open passwords again while single sign-on is on. Turning single sign-on off opens them (and if Zappocity cannot be reached, the command line on the server still works: sudo corpsuite sso set enabled:=false).

Good to know