Skip to main content
mailers.io

Deliverability and authentication

Adding a sending domain in mailers.io, with DKIM per domain

By mailers.io team Published 5 min read

A sending domain is the domain you put in your From address, for example example.com in [email protected]. Adding it to mailers.io lets the platform sign your mail with DKIM and keep watching that your DNS stays correct. This guide walks through the whole flow and explains what the status labels mean.

If DKIM is new to you, read SPF, DKIM and DMARC explained first. This post is the product side.

Before you start

You need three things:

  • Access to the domain’s DNS. You will add one TXT record, and DNS changes can take from a few minutes to a few hours to be visible.
  • A plan with sending domains. Sending domains are a plan limit. On some plans the limit is zero, which means the feature is off. Check the limits on the pricing page. If you reach your limit, adding another domain is refused until you remove one or change plan.
  • At least one sending server connected, so there is something to send through. See sending servers.

Adding a domain is optional. mailers.io does not block a From address because its domain is not verified here. The server or provider you connected is the one that decides which senders it accepts. A verified domain is what lets mailers.io sign and track the domain for you.

Step 1: add the domain

Open the sending domains page in the app and add the domain. Names are stored in lower case; internationalised names are converted to their ASCII (punycode) form. Add the exact domain you send from. If you send from mail.example.com, you can add that name, or add example.com and let the subdomain use its key.

The domain starts as pending. mailers.io generates a new RSA key of 2048 bits for it. The private half is stored encrypted and never leaves the service. The public half is turned into the DNS record.

Step 2: publish the DKIM record

The app shows you the record to publish. It is a TXT record at a name like <selector>._domainkey.<your domain>. The selector is chosen at random for each domain row. That detail matters: two different mailers.io accounts can each verify the same domain name under their own selector, and one cannot break the other.

Copy the host name and the value exactly. Common mistakes:

  • Some DNS panels add your domain to the host name for you. If you paste the full name, you end up with <selector>._domainkey.example.com.example.com. Enter only the part your panel expects.
  • Long values are sometimes split into several quoted strings by the panel. That is normal and is joined back by DNS.
  • A stray space or a smart quote pasted from a document will break the key.

Step 3: run the check

Press the check button. mailers.io queues a job that looks up the TXT record through the server’s DNS resolver. It does not connect to your web host or mail host. If the published key matches, the domain becomes verified.

Two behaviours to know:

  • The check can run at most once a minute for each domain.
  • If DNS cannot be reached at that moment, the answer is “unknown”, not “failed”. The job simply retries later.

If the record is not found yet, wait a few minutes and press again. The last error is kept: dkim_not_found when no record exists at that name, dkim_mismatch when a record exists but the key differs, and dns_unavailable when the lookup itself failed.

What happens with API providers

For providers that you reach over an API, a verified domain is also registered at the provider, on every such server in the account. This is done for Amazon SES, SendGrid, Mailgun, Postmark, SparkPost, Elastic Email and Brevo. It is not done for ZeptoMail, so a ZeptoMail domain is set up in the provider’s own console. mailers.io only removes identities it created itself; one it adopted from your existing account is never deleted.

Signing differs by route. When mail goes out over a plain SMTP server, mailers.io signs it with the key you just verified. When it goes through an API provider, the provider signs with its own DKIM for that domain, so the records the app shows for that provider are the ones to publish. See connecting Amazon SES for a worked example.

SPF and DMARC are advice

On every check, mailers.io also looks for a v=spf1 record at the domain and a v=DMARC1 record at _dmarc.<domain>. The result is shown with the domain’s records. It is advice only. A missing SPF or DMARC record never stops a domain from verifying or sending. That said, you should publish both. The plan for DMARC is in rolling out a DMARC policy.

Staying verified: the daily recheck and 72-hour grace

DNS changes. Someone removes a record during a clean-up, or a provider migration drops it. So mailers.io rechecks every verified domain once a day, spread across an hour so that DNS is not hit all at once.

If a verified domain fails a check:

  1. It becomes failing. The domain keeps signing and sending during this period.
  2. You get a notice that verification was lost, with the time the grace ends. There is one open notice per domain.
  3. A second check is queued for 72 hours after the first failure.
  4. If the record is back, the domain returns to verified and the notice is cleared. If it is still missing at 72 hours, the domain goes back to pending, and the notice is renewed to say sending with it has paused.

So the fix for a failing domain is simple: put the record back and press check.

Subdomains and several domains

A subdomain signs with the closest matching parent that is verified or failing, because DMARC relaxed alignment treats them as one organisation. This is useful for keeping streams apart. For example, put campaigns on one subdomain and application mail on another; the reasons are in separate subdomains for marketing and transactional mail and, for cold outreach, the cold-email subdomain strategy.

Deleting a domain asks you to confirm with a recent sign-in step. It destroys the key outright.

Quick troubleshooting

  • Still pending after an hour: query the record name with a DNS lookup tool and compare the value to the app character by character.
  • Mismatch: an old record from an earlier attempt may still be published. Remove it.
  • Verified but mail lands in spam: DKIM only proves identity. Reputation, content and volume decide the rest; warm up new domains gradually, as in email warm-up.

More on the feature itself is on the sending domains page.

Questions and answers

Do I have to add a sending domain?

No. Sending domains are optional. Without one, mailers.io sends unsigned and the server or provider you connected applies its own sender rules.

Can I add a subdomain such as mail.example.com?

Yes. A subdomain signs with the key of its parent domain when the parent is added, which is compatible with relaxed DMARC alignment.

How often can I press the check button?

At most once a minute for each domain. Pressing it sooner returns a short wait message.

Written by the mailers.io team. Published .

Keep reading

Related posts

Send cold e-mail from your own servers.

Connect your servers, import a list and write the steps. Replies stop the sequence.

  • 7-day money-back guarantee
  • Bring your own providers
  • Cancel anytime