1. The wizard's domain
The first-start wizard creates the domain of the super administrator's address (for example example.com) with its DKIM keys. Open Administration › Domains and DNS, publish the records marked "required", then wait for each one to turn green. Outbound port 25 is also tested there.
More mailbox domains (other-brand.com) are added from Domains and DNS › Add a domain › Mailbox domain: each has its own DKIM keys and records, on the same server and host name. An added domain is offered for addresses, and the API accepts a from on it, only once it is verified (or after "Open to addresses now").
2. The team's accounts
In Administration › Users, invite your colleagues by email or by link. Each one chooses a password, then can enable two-factor authentication, passkeys and app passwords (for desktop and phone apps). The administrator sets each account's roles and disk space.
Mail apps: IMAP mail.example.com:993 (TLS), SMTP mail.example.com:465 (TLS; port 587 is not served yet), username = the full address, password = an app password.
3. A shared mailbox (optional)
contact@ or support@ are created as shared mailboxes: each member only receives what the rules assign to them.
4. An API key
There are two kinds of keys (details):
- application key: created by an administrator in Administration › API keys, for one or more domains, with the
sending_access(sending) orfull_access(everything) permission; - personal key: created by each user in Developers (account menu), to send from their own address.
5. The first email
cURL
curl https://mail.example.com/api/v1/emails \
-H "Authorization: Bearer $VOAARO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"from": "Acme <notifications@example.com>",
"to": ["client@example.org"],
"subject": "Welcome",
"html": "<p>Your account is ready.</p>"
}'Node / Bun
import { Voaaro } from "@deveryidea/voaaro"
const voaaro = new Voaaro(process.env.VOAARO_API_KEY, { baseUrl: "https://mail.example.com" })
const { data, error } = await voaaro.emails.send({
from: "Acme <notifications@example.com>",
to: ["client@example.org"],
subject: "Welcome",
html: "<p>Your account is ready.</p>",
})Python
import voaaro
voaaro.api_key = os.environ["VOAARO_API_KEY"]
voaaro.base_url = "https://mail.example.com"
email = voaaro.Emails.send({
"from": "Acme <notifications@example.com>",
"to": ["client@example.org"],
"subject": "Welcome",
"html": "<p>Your account is ready.</p>",
})PHP
use Voaaro\Voaaro;
$voaaro = Voaaro::client(getenv('VOAARO_API_KEY'), baseUrl: 'https://mail.example.com');
$email = $voaaro->emails->send([
'from' => 'Acme <notifications@example.com>',
'to' => ['client@example.org'],
'subject' => 'Welcome',
'html' => '<p>Your account is ready.</p>',
]);Go
client := voaaro.NewClient(os.Getenv("VOAARO_API_KEY"),
voaaro.WithBaseURL("https://mail.example.com"))
sent, err := client.Emails.Send(&voaaro.SendEmailRequest{
From: "Acme <notifications@example.com>",
To: []string{"client@example.org"},
Subject: "Welcome",
Html: "<p>Your account is ready.</p>",
})The response gives the message ID: {"id": "…", "suppressed": []}. Its journey (accepted, sent, delivered) can be followed in Administration › Sending log, with GET /api/v1/emails/{id} or by webhook.
Next: install for real (backups, updates, monitoring).