Skip to content

Set up a sending domain

To send with your domain in the sender (From), the domain must be linked to your server and verified through DNS.

How to add a domain

  1. Tell [email protected] which domain (at activation, or later for additional domains).
  2. Our team links the domain to the server and sends the list of DNS records with the exact values.
  3. You publish the records in the domain's DNS.
  4. Tell support once they are published. The check runs and the result for each record is reported to you.

Always use the values we send

The examples below show the format of each record. The verification token, the selector and the DKIM public key are specific to your domain.

The records

Check Type Name Value
Verification TXT yourdomain.com frontengine-verification <token>
DKIM TXT <selector>._domainkey.yourdomain.com v=DKIM1; k=rsa; p=<public key>
SPF TXT yourdomain.com v=spf1 include:<FrontEngine include> ~all
Return path CNAME frp.yourdomain.com rp.frontengine.net
MX MX yourdomain.com smtp-in.frontengine.net

What each one does:

  • Verification. Proves that whoever asked for the link controls the domain. It is the only check that enables sending from the domain.
  • DKIM. Publishes the 2048-bit RSA public key used to sign your messages. The signature is applied only once the key is published. See SPF, DKIM and DMARC.
  • SPF. Authorizes FrontEngine's addresses. If the domain already has an SPF record, add the include to the existing record instead of creating a second one.
  • Return path. Makes the return address (envelope) use your domain. See Custom return path.
  • MX. Needed only if the domain also receives email through FrontEngine (inbound mail forwarded to an HTTP endpoint). If the domain receives email at another provider, do not change the MX.

Check results

Each check has one of these results:

Result Meaning
ok The record was found with the expected value.
missing The record does not exist.
invalid A record exists but with a different value than expected (for example, SPF without our include, or a CNAME pointing elsewhere).
error The DNS lookup failed. It does not indicate a problem in your zone; the check is run again.
unconfigured Does not apply to this domain (for example, there is no active DKIM key).
unchecked Not checked yet.

Details that commonly cause invalid:

  • SPF: the check looks, among the TXT records starting with v=spf1, for one that contains our include as a separate term.
  • Return path: the CNAME must have a single target, exactly rp.frontengine.net.
  • MX: every published MX must be ours.

Verification and daily re-check

  • The domain is marked verified the first time the verification TXT is found. A later lookup failure does not undo the verification.
  • Verified domains are checked again every 24 hours.
  • If the SPF, DKIM, MX or return path of a verified domain stops checking out, the DomainDNSError event is sent to your webhooks. The event is emitted once per change, not on every check. See Webhooks.

DMARC is not checked

FrontEngine does not check your domain's DMARC record. It is yours, and the guidance is in SPF, DKIM and DMARC.

DNS propagation

After publishing, check with dig before asking for the check:

dig +short TXT yourdomain.com
dig +short TXT <selector>._domainkey.yourdomain.com
dig +short CNAME frp.yourdomain.com

Next steps