SPF, DKIM and DMARC¶
Destination providers decide what to do with a message based on three mechanisms. Two of them depend on records you publish at our request (SPF and DKIM). The third (DMARC) is a policy of your own.
Authentication does not guarantee the inbox
Correct SPF, DKIM and DMARC are a prerequisite for good delivery, but no sending service guarantees that a message reaches the inbox. The final decision belongs to the recipient's provider.
SPF¶
SPF lists the servers allowed to send on behalf of a domain. It is evaluated against the domain of the return address (envelope), not the visible From.
Record to publish:
| Type | Name | Value |
|---|---|---|
| TXT | yourdomain.com | v=spf1 include:<FrontEngine include> ~all |
The exact include value is sent by our team along with the other records.
Practical rules:
- A domain must have a single SPF record. If one already exists, add our
includeto it. Example:v=spf1 include:_spf.otherprovider.com include:<FrontEngine include> ~all. - SPF allows at most ten DNS lookups per evaluation. Remove the
includeof services you no longer use.
DKIM¶
DKIM signs the message with a private key. The destination validates the signature with the public key in your DNS.
| Type | Name | Value |
|---|---|---|
| TXT | <selector>._domainkey.yourdomain.com | v=DKIM1; k=rsa; p=<public key> |
How FrontEngine signs:
- The key is 2048-bit RSA, generated per domain.
- The signature uses the
Fromdomain (d=yourdomain.com), so it is aligned for DMARC. - The message is signed only when the public key is published in DNS. Before that it leaves without your domain's signature.
- Key replacement (rotation) is manual. Ask [email protected]; we send the new record for you to publish before the switch.
Long TXT records
A 2048-bit key is longer than 255 characters. Some DNS panels require the value to be split into quoted chunks. The final content, concatenated, must be identical to what we sent.
DMARC¶
DMARC tells the destination what to do when a message with your domain in From passes neither SPF nor DKIM with alignment, and where to send reports.
The DMARC record is yours. FrontEngine does not create it, change it or check it.
A safe gradual rollout:
| Stage | Record at _dmarc.yourdomain.com | Effect |
|---|---|---|
| 1. Observe | v=DMARC1; p=none; rua=mailto:[email protected] | Nothing is blocked. You receive aggregate reports. |
| 2. Quarantine | v=DMARC1; p=quarantine; rua=mailto:[email protected] | Failing messages tend to go to spam. |
| 3. Reject | v=DMARC1; p=reject; rua=mailto:[email protected] | Failing messages are refused. |
Move to the next stage only after the reports show that all your legitimate email sources (FrontEngine, mailbox provider, other systems) pass with alignment.
Alignment¶
DMARC passes when at least one of the two is true:
- DKIM passes and the signing domain (
d=) matches theFromdomain; - SPF passes and the return address domain matches the
Fromdomain.
In the default (relaxed) mode, "matches" means the same organizational domain: frp.yourdomain.com is aligned with yourdomain.com.
In FrontEngine:
| Mechanism | Domain used | Aligned with your From? |
|---|---|---|
| DKIM | the From domain | Yes, as long as the key is published |
| SPF, with a custom return path | frp.yourdomain.com | Yes (relaxed alignment) |
| SPF, without a custom return path | rp.frontengine.net | No. SPF passes, but for our domain |
In practice: with the DKIM key published, DMARC passes through DKIM. Publishing the custom return path as well makes SPF aligned, which gives a second way to pass.