From your domain to the recipient’s inbox
What you set up, what we check, and what happens to each message. The examples use example.com; the portal shows the exact values for your domain.
Two domains, on purpose
securemx.io is our brand: this site and the portal. Every hostname that appears in mail we relay (the server name, DKIM key records and return-path targets) lives under a separate domain, smxrelay.net. If someone ever got that domain onto a blocklist, the portal and your account wouldn’t be affected, and we could replace it.
So the records you add to your DNS all point at smxrelay.net, while the names you type into a browser or mail client are under securemx.io. The SMTP server name, smtp.securemx.io, is an alias, so we can move what’s behind it without you changing your settings.
1. Add your domain
In the portal, add the domain you want to send from. We generate a DKIM key pair for it, encrypt the private key for storage and publish the public key under smxrelay.net. We also assign the domain a short, opaque reference (k3x9q2 below) that ties those records to it. We look up your nameservers so we can name your DNS host in the instructions.
2. Publish the DNS records
Most of the records are CNAMEs that point to names we manage. That’s deliberate: when a key needs rotating we change our side, and you never have to edit DNS again.
We rotate each domain’s key once a year, and you can rotate it yourself from the domain’s page. The new key has been published under the second selector all along; before switching we check that it’s reachable through your CNAME, and the old key stays published for a week so mail already signed with it keeps verifying. We email you when it happens, but there’s nothing to do.
| Name | Type | Value | |
|---|---|---|---|
_securemx-verify | TXT | smx-verify=<token> | Required |
sm1._domainkey | CNAME | sm1.k3x9q2.dkim.smxrelay.net | Required |
sm2._domainkey | CNAME | sm2.k3x9q2.dkim.smxrelay.net | Required |
smx-bounce | CNAME | rp.smxrelay.net | Required |
_dmarc | TXT | v=DMARC1; p=none; rua=mailto:dmarc@example.com | Recommended |
@ (apex) | TXT | include:spf.smxrelay.net | Optional |
The same records in zone-file form:
; example.com: records for securemx (example values)
_securemx-verify.example.com. TXT "smx-verify=<token>"
sm1._domainkey.example.com. CNAME sm1.k3x9q2.dkim.smxrelay.net.
sm2._domainkey.example.com. CNAME sm2.k3x9q2.dkim.smxrelay.net.
smx-bounce.example.com. CNAME rp.smxrelay.net.
; recommended, if you don't have a DMARC record yet
_dmarc.example.com. TXT "v=DMARC1; p=none; rua=mailto:dmarc@example.com"
; optional: merge into your existing SPF record (only one per domain)
example.com. TXT "v=spf1 include:_spf.google.com include:spf.smxrelay.net ~all"Why each one exists
_securemx-verifyTXT- Proves you control the domain. Nobody else can add example.com to their account and send as you.
sm1._domainkeyCNAME- Points to the public half of your DKIM key, which we publish. Receivers use it to check that mail signed for example.com really came from us and wasn’t altered.
sm2._domainkeyCNAME- A second selector, published in advance, so keys can be rotated with no DNS change on your side.
smx-bounceCNAME- Your return path. Bounces come back to smx-bounce.example.com, which is how we suppress bad addresses, and SPF is checked against this name, so it aligns with your domain for DMARC.
_dmarcTXT- Tells receivers what to do when authentication fails and where to send reports. Large mailbox providers increasingly require one. Start with p=none, then tighten it once reports look clean. Skip this if you already have one.
@ (apex)TXT- Not needed for alignment, because the return path handles SPF. Add it only if you want your apex SPF record to list us too, and merge it into your existing record: a domain must have exactly one SPF record.
3. We check the records for you
Press Check now and we query your domain’s authoritative nameservers directly, so you see what’s really published rather than a stale cached answer. Each record shows as ok, missing or wrong, with an explanation of what to fix. The mistakes we spot include:
- A name entered in full, so your DNS host appends the domain again:
sm1._domainkey.example.com.example.com. - A CNAME that answers with an IP address because the provider proxies or flattens it (Cloudflare’s orange cloud).
- A CNAME pointing at the wrong target, or a TXT record where a CNAME should be.
- Two SPF records, which makes SPF fail entirely; two DMARC records, which receivers ignore.
Once the required records are in place, the domain is verified and you can send from it. We keep checking verified domains daily. If a required record disappears, the domain is marked degraded, and we stop signing and sending for it before receivers start rejecting your mail.
A domain and all its subdomains belong to one account: once example.com is yours, nobody else can add example.com or mail.example.com. (If a department runs its own subdomain in its own account, contact us.) Keep the _securemx-verify record in place: it is how we know the domain is still yours. If it goes missing we email you at once and again after a week, and after two weeks the domain is removed from your account so its next owner can use it. If someone else proves the domain while your record is missing, it moves to them right away.
4. Send
SMTP (mail clients and most apps)
| Server | smtp.securemx.io |
|---|---|
| Port | 587 with STARTTLS, or 465 with TLS from the first byte |
| Authentication | AUTH PLAIN (“normal password”), offered only after TLS is up; AUTH LOGIN isn’t supported |
| Username / password | From an app password you create in the portal (shown once) |
AUTH LOGIN isn’t supported; every current mail client and library supports PLAIN and most pick it on their own. If yours doesn’t, choose it by hand: “Normal password” in Thunderbird, “Password” in Apple Mail, AuthType = 'PLAIN' in PHPMailer, authMethod: 'PLAIN' in Nodemailer. Use one app password per device or app, so you can revoke one without touching the rest.
HTTP API (applications)
Create an API key in the portal and send JSON to POST /api/v1/messages. You can send plain text, HTML or both, with To, Cc, Bcc and Reply-To.
curl https://app.securemx.io/api/v1/messages \
-H "Authorization: Bearer smx_…" \
-H "Content-Type: application/json" \
-d '{
"from": {"email": "hello@example.com", "name": "Example"},
"to": [{"email": "someone@example.net"}],
"subject": "Your sign-in link",
"text": "Here it is: https://example.com/login/…"
}'What happens to each message
- Your credential is checked, along with your account’s hourly and daily limits, which SMTP and the API share (and the credential’s own limit, if it has one).
- The From address must be on one of your verified domains; anything else is refused.
- Recipients on your suppression list are skipped.
- The message is scanned for spam, then DKIM-signed as
example.com. No Received header with your IP address is added. - We deliver it over TLS whenever the receiving server supports it, and require TLS for domains that publish MTA-STS or DANE policies.
- Hard bounces come back to
smx-bounce.example.comand the address is suppressed automatically.
Questions about a setup? Write to postmaster@securemx.io. Not in the beta yet? Request an invite.