- an API key for the REST transport, a string that starts with
mk_ - an SMTP username and password for submission, where the username is
localpart@verified-domain
--transport smtp with no SMTP credential is an error rather than a quiet fallback to REST. Both are created in the dashboard under Credentials, against a verified domain.
First-time setup
--no-verify to store a key without checking it, which is occasionally useful on a machine with no route to the API yet.
Storing credentials directly
--key exists for scripted setup, at the cost of putting the key in your shell history.
To check what is configured, without contacting anything:
mailkube auth logout drops the API key, and mailkube auth logout --smtp drops the SMTP one.
Where credentials live
In a TOML file in your platform’s own configuration directory, created readable only by you:mailkube config path prints the real one. See Configuration for the file format and the full precedence rules.
Without storing anything
Every credential can come from the environment instead, which is what you want in CI:--api-key. Flags beat environment variables, which beat the config file.
More than one sending domain
An SMTP credential is bound to a single domain, and a profile holds one SMTP credential. Two sending domains therefore means two profiles:--profile overrides the active profile for one command. MAILKUBE_PROFILE does the same for a shell session.
When a key is rejected
mailkube doctor checks the whole picture.
Next steps
Quickstart
Send your first message.
Configuration
Profiles, settings, precedence, and every environment variable.