Skip to content

Custom return path

What the return path is

Every message has two senders:

  • the From, which the recipient sees;
  • the envelope return address (MAIL FROM, recorded by the destination in the Return-Path header), where destination servers send delivery failure notices (bounces).

On messages sent through a FrontEngine server, the return address is generated by us, with a unique identifier per recipient. That is how a bounce arriving hours later is matched to the right message.

Default and custom

Situation Return address
No CNAME on your domain <identifier>@rp.frontengine.net
CNAME published and verified <identifier>@frp.yourdomain.com

Both work. The custom return path is used only after the CNAME check results in ok.

How to configure it

Publish one record in the sending domain's DNS:

Type Name Value
CNAME frp.yourdomain.com rp.frontengine.net

Things to watch:

  • The CNAME must have a single target, exactly rp.frontengine.net. Any other value results in invalid.
  • Do not publish other records (TXT, MX) at the same name. A CNAME cannot coexist with other types.
  • If your DNS has a proxy (for example, Cloudflare's "proxied" mode), leave this record as "DNS only".

Check it:

dig +short CNAME frp.yourdomain.com

What it is for

  • SPF alignment. With the return path on your domain, SPF passes aligned with From, which gives DMARC a second way to pass besides DKIM. See SPF, DKIM and DMARC.
  • Consistent identity. The Return-Path header shows your domain rather than a shared one.
  • Bounce processing. In both cases, bounces arriving at the return address are read by FrontEngine, matched to the original message and delivered to you as the MessageBounced event. See Bounces and suppression.

You do not receive bounces by email

Because the return address is ours, failure notices do not reach the sender's mailbox. The notice is the webhook and the message status in the API.

Monitoring

The CNAME is one of the domain's five DNS checks and is re-run daily. If a verified domain stops having the correct CNAME, the DomainDNSError event is sent to your webhooks with return_path_status other than OK, and sending goes back to using rp.frontengine.net.

Next steps