Policies

Policies

The org’s rules on forwarding and sessions.

On this page
  1. policies get
  2. policies set

mailset policies get

Show the org’s policies.

Returns

With --json it prints what the API returns.

In the API: POST /v1/policies.get

Usage
mailset policies get [--org <id>]
Example
mailset policies get

mailset policies set

Change the org’s policies.

Admin or ownerPasskey

Flags

  • --forwardingenumoptional

    Forwarding rules: allowed with a passkey check, or never.

    One ofpasskeynever

  • --shared-aiflagoptional

    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).

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.

Returns

With --json it prints what the API returns.

In the API: POST /v1/policies.set

Usage
mailset policies set [--forwarding passkey|never] [--shared-ai] [--session-days <n>] [--org <id>]
Example
mailset policies set --forwarding never --session-days 7