Domains & DNS
Guided SPF, DKIM, DMARC, and one-click DNS provider writes.
Transactional email platform
Self-hosted MailHub gives you domain DNS guidance, DKIM signing, delivery logs, and signed webhooks — without locking you into a black-box SaaS.
Everything you need to authenticate domains and observe delivery.
Guided SPF, DKIM, DMARC, and one-click DNS provider writes.
App-friendly SMTP listeners with credentials you control.
Bearer tokens and a simple JSON send endpoint for apps and services.
Create persistent or expiring inboxes with IMAP, POP3, forwarding, and catch-all routing.
Track queue and MTA outcomes with searchable send history.
Signed callbacks for sent, bounced, and failed terminal events.
Domains, tokens, and logs stay scoped to each account.
The console keeps domain, token, mailbox, and delivery configuration in one place.
Add your sending domain and publish the DNS records shown by MailHub.
Review domain setup →Give each integration only the send or mailbox permissions it needs.
Review API access →Create persistent mailboxes in the console or create persistent and temporary mailboxes by API.
Review mailbox API →Use SMTP to send and IMAP or POP3 to receive with the mailbox's full address and password.
Review protocol settings →Minimal JSON contract. Hostnames below are placeholders — replace with your MailHub host.
from — sender address on a verified domainto — recipient string or arraysubject — message subjecttext / html — message bodyCreate a persistent address for ongoing work, or an expiring address for a short-lived workflow.
POST to /api/mailboxes with a token holding mailboxes:write. The target domain must belong to that account.
mode — permanent or temporaryaddress / domain — use a full address, or let a temporary mailbox generate one from domainexpiresInMinutes — required for temporary mailboxes; 5 minutes to 30 dayspassword — optional; a secure password is returned once when omittedCreation returns the address, password, expiration, and ready-to-use IMAP, POP3, and SMTP settings.
Use GET /api/mailboxes with mailboxes:read to list the account's mailboxes. A temporary mailbox stops accepting mail and authenticating at its expiration time.
Create the domain in MailHub first. Its DNS panel is the source of truth for your exact verification, DKIM, SPF, DMARC, and sender-host values.
| Purpose | Record | Requirement |
|---|---|---|
| Domain ownership | TXT _mailhub.<domain> | Publish the verification value generated in the console. |
| DKIM | TXT <selector>._domainkey.<domain> | Publish the public key generated for this domain. |
| SPF | TXT <domain> | Keep one SPF record and include the sender IP/host required by MailHub. |
| DMARC | TXT _dmarc.<domain> | Start with monitoring, then strengthen the policy after alignment is verified. |
| Inbound mail | MX <domain> | Point MX to the MailHub receiving host and ensure that host has an A/AAAA record. |
For reliable delivery, also configure the sending IP's PTR to match the MailHub sending hostname and allow the documented SMTP, IMAP, and POP3 ports through your firewall.
Default listener ports (override in your deployment):
Use a mailbox's full address and password for SMTP, IMAP, and POP3. Prefer TLS ports 465, 993, and 995; use STARTTLS/STLS on the plain ports when needed.
Terminal events only — signed HTTPS callbacks to your systems.
| Status | type |
|---|---|
sent | email.sent |
bounced | email.bounced |
failed | email.failed |
Signature header: X-MailHub-Signature: t=<unix>,v1=<hmac>
Create an account, add a domain, and ship your first message in minutes.