Get your free beta license ↗
CMDCommand · run as root on the server · botmail family

urbestack-botmail-key-add

First published 18 Oct 20260.2.10Unchanged since publication

Usage

# urbestack-botmail-key-add --address user@example.com --name NAME [--used-by-person yes|no] [--platform WORD] [--from-name NAME] [--may read,search,flag,draft,send,reply] [--send-mode self|drafts|known] [--folders-out drafts,sent,junk,trash] [--recipients a@b,example.com,...] [--blocked ...] [--sends-per-hour N] [--sends-per-day N] [--recipients-per-message N] [--calls-per-minute N] [--copy-to ADDRESS] [--from-addresses IP,CIDR,...] [--expires-days N] [--owner USER]

Description

From the command's --help output
Creates a named BotMail key for the mailbox specified by --address. BotMail must be ready for
the domain and allowed by the customer's package. Use --owner to require that the mailbox belong
to that customer. The command returns the secret only once, both on its own and in the MCP URL
for the bot.

When you create the mailbox's first key, use --used-by-person yes if a person also uses the
mailbox in a mail client, or no if only bots use it. The default is yes. The setting belongs to
the mailbox and supplies defaults for new keys. A shared mailbox defaults to --send-mode drafts,
which leaves outgoing mail in Drafts, and excludes Drafts and Trash from the key's folder
access. A bots-only mailbox defaults to --send-mode self, which lets the bot send directly. It
excludes Trash and sends copies to the customer's email address if one is set.

--platform records the bot's platform. --from-name sets the sender display name for this key. An
empty value uses just the sender's email address. --may takes a comma-separated list of
permitted operations and defaults to read,search. --folders-out takes a comma-separated list of
folders the key cannot access. --recipients and --blocked take comma-separated lists of email
addresses or domain names, such as a@b,example.com. --copy-to sets the email address that
receives copies of outgoing mail. --from-addresses restricts access to a comma-separated list of
IP addresses or CIDR networks. --expires-days sets the key's lifetime in days and defaults to 0
for no expiration.

--sends-per-hour defaults to 20 and accepts 1 to 1000. --recipients-per-message defaults to 5
and accepts 1 to 50. --sends-per-day defaults to 100 and --calls-per-minute defaults to 30. Both
have a minimum of 1 and are capped by mail.botmail_sends_per_day and
mail.botmail_calls_per_minute, which default to 200 and 60 respectively. The package can set a
lower key limit per mailbox than the server's mail.botmail_keys_per_mailbox ceiling, which
defaults to 5. An unset or zero package limit uses the server ceiling.

Options

Find other commands that accept these options

Same in the API

This operation runs the command.

More in botmail

14 commands, by what they work onView all commands in this family →
urbestack-botmail-
urbestack-botmail-domain-
urbestack-botmail-key-
urbestack-botmail-webhook-
Generated from release 0.2.35 (current) · urbestack-botmail-key-add --help outputThis entry has been unchanged since it was first published in release 0.2.10 on 18 Oct 2026.
urbestack.com/docs/commands/urbestack-botmail-key-add/