# Policies

The org’s rules on forwarding and sessions.

## mailset policies get

Show the org’s policies.

```bash
mailset policies get [--org <id>]
```

With `--json` it prints what [the API returns](https://mailset.app/docs/api/policies#policies.get-returns).

Example:

```bash
mailset policies get
```

In the API: [POST /v1/policies.get](https://mailset.app/docs/api/policies#policies.get)

## mailset policies set

Change the org’s policies.

```bash
mailset policies set [--forwarding passkey|never] [--shared-ai] [--session-days <n>] [--org <id>]
```

### Flags

- `--forwarding` (enum, optional): Forwarding rules: allowed with a `passkey` check, or `never`. One of `passkey`, `never`.
- `--shared-ai` (flag, optional): Whether AI runs on shared mailboxes.
- `--session-days` (\<n\>, optional): How long a new sign-in lasts, in days: 30, 7 or 0.5 (12 hours).

An admin or owner of the org can run it.

It can ask for your passkey. It prints “This needs your passkey. Open <link>”, then waits until the link is approved or refused. Read its output as it comes: through head or tail, the link shows only after the wait.

With `--json` it prints what [the API returns](https://mailset.app/docs/api/policies#policies.set-returns).

Example:

```bash
mailset policies set --forwarding never --session-days 7
```

In the API: [POST /v1/policies.set](https://mailset.app/docs/api/policies#policies.set)

---

© 2026 Intenseloop, Inc. Mailset’s site, docs and guides are copyrighted. You may read them and use their code to build with Mailset. Don’t republish them or use them to build a copy of Mailset. Terms: https://mailset.app/terms#content