# urbestack-webmail-open

First published 18 Oct 2026 (release 0.2.10) · Unchanged since publication

UrbeStack release 0.2.35 command, run as root in the server shell.

## Usage

```
urbestack-webmail-open --address user@example.com [--owner USER]
urbestack-webmail-open --release --address user@example.com --ticket-stdin
urbestack-webmail-open --sweep
```

## Description

Issues a webmail sign-in ticket for the mailbox specified by --address. The ticket acts as a password for 12 hours and can be used only from this server. The command returns the ticket in cleartext only once, along with its expiration time and the URL to POST it to. UrbeStack stores only hashes of the ticket and logs its issuance as webmail-open.

Issuing a ticket requires an installed mail system, webmail enabled through mail.webmail, and an existing mailbox with sign-in enabled and an active owner account. Use --owner to require that the mailbox's domain belong to the specified user. A new ticket replaces the mailbox's previous ticket, which ends the previous webmail session on its next request. Issuing a ticket also removes expired tickets.

--release removes the matching ticket for the mailbox specified by --address and reports whether it was removed. It requires --ticket-stdin to read the ticket from standard input. The webmail plugin uses this mode at logout. --sweep removes expired tickets and reports how many it removed. All three modes regenerate Dovecot's password file only when the mail system is installed.

## Same in the API

- [POST /domains/{name}/mail/accounts/{local}/webmail](https://urbestack.com/docs/api/post-domains-name-mail-accounts-local-webmail.md): Issue a webmail sign-in ticket for a mailbox
- [POST /mail/webmail/release](https://urbestack.com/docs/api/post-mail-webmail-release.md): Release a webmail sign-in ticket at logout
