Sending Domain Setup
A sending domain authenticates your outgoing emails with DKIM and DMARC, ensuring they are delivered reliably and not marked as spam. This requires a CNAME record for domain verification, a TXT record for DKIM signing, and a TXT record for DMARC policy. To create a sending domain in Lettr:- Select Domains in the navigation panel
- Select Sending Domains
- Click Create Sending Domain
- Enter your desired sending subdomain (e.g.
mailing.company.com) - Click Create Domain
Configure Gandi DNS
Log in to your Gandi account and click Domain in the left sidebar. Select the domain you want to configure, then click the DNS Records tab at the top of the domain settings page.Domain registered with a different registrar?
Domain registered with a different registrar?
If you registered your domain elsewhere but want to manage DNS on Gandi, you must first update the nameservers
at your registrar to Gandi’s LiveDNS nameservers. Gandi assigns unique LiveDNS nameservers per domain in the format
ns-{numbers}-{letters}.gandi.net. You can find your domain’s specific nameservers under the Nameservers tab
in your Gandi domain settings.Add CNAME Record
The CNAME record verifies domain ownership with Lettr’s email infrastructure. Copy the CNAME values from Lettr to Gandi:- Click the green Add button above the DNS records table.
- Set Type to CNAME.
- Set Name to the Hostname value from Lettr (without your domain suffix). For example, paste only
mailing. - Set Hostname to the Value from Lettr, ensuring it ends with a trailing period (e.g.
sparkpostmail.com.). - Leave TTL at the default (10800).
- Click Create.
Gandi requires a trailing period on CNAME target values. When pasting the value from Lettr into the Hostname
field, ensure it ends with a period (e.g.
sparkpostmail.com.). Without it, Gandi will append your domain to the
target, producing an incorrect address.Add TXT Record (DKIM)
The DKIM record adds a cryptographic signature to your outgoing emails, allowing recipients to verify they were sent by an authorized sender. Copy the TXT values from Lettr to Gandi:- Click the green Add button above the DNS records table.
- Set Type to TXT.
- Set Name to the Hostname value from Lettr (without your domain suffix). For example, paste only
scph0126._domainkey.mailing. - Set Text Value to the Value from Lettr.
- Leave TTL at the default (10800).
- Click Create.
The DKIM value is a long string that may exceed 255 characters. Gandi’s interface accepts the value as a single
string for standard records. If the interface requires chunking for very long values, split the value into 255-character
segments and wrap each in double quotes adjacent to one another:
"first255chars""next255chars".Add TXT Record (DMARC)
The DMARC record tells receiving mail servers how to handle emails that fail authentication checks, protecting your domain from spoofing. Copy the TXT values from Lettr to Gandi:- Click the green Add button above the DNS records table.
- Set Type to TXT.
- Set Name to the Hostname value from Lettr (without your domain suffix). For example, paste only
_dmarc.mailing. - Set Text Value to the Value from Lettr (e.g.
v=DMARC1; p=none;). - Leave TTL at the default (10800).
- Click Create.
Verify Your Sending Domain
After adding all three DNS records, go back to Lettr and click Verify DNS Records. DNS propagation can take up to 24–48 hours, though it typically completes within a few hours with Gandi LiveDNS.Inbound Domain Setup
An inbound domain allows Lettr to receive emails on your behalf. This requires three MX records that direct incoming mail to Lettr’s mail servers.Add Inbound Domain to Lettr
To create an Inbound domain in Lettr:- Select Domains in the navigation panel
- Select Inbound Domains
- Click Create Inbound Domain
- Enter your desired inbound subdomain (e.g.
inbound.company.com) - Click Create Domain.
Add MX Records
MX records tell other mail servers where to deliver emails addressed to your domain. Copy the MX values from Lettr to Gandi:- Click the green Add button above the DNS records table.
- Set Type to MX.
- Set Name to the Hostname value from Lettr (without your domain suffix). For example, paste only
inbound. - Set Hostname to
rx1.sparkpostmail.com.(with a trailing period). - Set Priority to
10. - Leave TTL at the default (10800).
- Click Create.
- Repeat this process for the second (
rx2.sparkpostmail.com.) and third (rx3.sparkpostmail.com.) MX records, each with priority10.
Gandi requires a trailing period on MX target hostnames. Enter each mail server address with a trailing period
(e.g.
rx1.sparkpostmail.com.) to ensure the record resolves correctly.Verify Your Inbound Domain
After adding all three MX records, go back to Lettr and click Verify DNS Records. DNS propagation can take up to 24–48 hours, though it typically completes within a few hours.Tracking Domain Setup
A tracking domain allows Lettr to track email opens and link clicks using your own custom domain instead of the default Lettr tracking domain. This requires two CNAME records: one for the SSL certificate and one for routing tracking traffic to Lettr’s infrastructure.Add Tracking Domain to Lettr
To create a Tracking domain in Lettr:- Select Domains in the navigation panel
- Select Tracking Domains
- Click Create Tracking Domain
- Enter your desired tracking subdomain (e.g.
tracking.company.com) - Click Create Domain
Add SSL Certificate CNAME Record
The SSL Certificate CNAME record provisions an SSL certificate for your custom tracking domain, enabling secure HTTPS connections for tracked links. Add the record in Gandi:- Click the green Add button above the DNS records table.
- Set Type to CNAME.
- Set Name to the Hostname from Lettr (without your domain suffix).
- Set Hostname to the Value from Lettr, ensuring it ends with a trailing period.
- Leave TTL at the default (10800).
- Click Create.
Add Traffic CNAME Record
The Traffic CNAME record routes click and open tracking requests from your custom domain to Lettr’s tracking servers. Add the record in Gandi:- Click the green Add button above the DNS records table.
- Set Type to CNAME.
- Set Name to the Hostname from Lettr (without your domain suffix).
- Set Hostname to the Value from Lettr, ensuring it ends with a trailing period.
- Leave TTL at the default (10800).
- Click Create.
Verify Your Tracking Domain
After adding both CNAME records, go back to Lettr and click Verify DNS Records.Storage Domain Setup
A storage domain lets you serve email assets (images, attachments) from your own custom domain instead of the default Lettr storage URL. This requires two TXT records for certificate validation and ownership verification, and a CNAME record for routing asset requests to Lettr’s storage infrastructure.Add Storage Domain to Lettr
To create a Storage domain in Lettr:- Select Domains in the navigation panel
- Select Storage Domains
- Click Create Storage Domain
- Enter your desired storage subdomain (e.g.
assets.company.com) - Click Create Domain
Add TXT Record (Certificate Validation)
The Certificate Validation TXT record provisions an SSL certificate for your custom storage domain, enabling secure HTTPS delivery of email assets. Add the record in Gandi:- Click the green Add button above the DNS records table.
- Set Type to TXT.
- Set Name to the Hostname from Lettr (without your domain suffix).
- Set Text Value to the Value from Lettr.
- Leave TTL at the default (10800).
- Click Create.
Add TXT Record (Hostname Pre-validation)
The Hostname Pre-validation TXT record verifies ownership of the storage domain before Lettr provisions a custom hostname for it. Add the record in Gandi:- Click the green Add button above the DNS records table.
- Set Type to TXT.
- Set Name to the Hostname from Lettr (without your domain suffix).
- Set Text Value to the Value from Lettr.
- Leave TTL at the default (10800).
- Click Create.
Add CNAME Record (Domain Routing)
The Domain Routing CNAME record routes asset requests from your custom domain to Lettr’s storage infrastructure. Add the record in Gandi:- Click the green Add button above the DNS records table.
- Set Type to CNAME.
- Set Name to the Hostname from Lettr (without your domain suffix).
- Set Hostname to the Value from Lettr, ensuring it ends with a trailing period.
- Leave TTL at the default (10800).
- Click Create.
Verify Your Storage Domain
After adding all three records, go back to Lettr and click Verify DNS Records.Troubleshooting
Missing Trailing Period on CNAME or MX Target
Missing Trailing Period on CNAME or MX Target
The most common mistake when adding records in Gandi is omitting the trailing period from CNAME and MX target
values. Without it, Gandi appends your domain name to the target, resulting in an incorrect address (e.g.
sparkpostmail.com.company.com instead of sparkpostmail.com).Always ensure the Hostname field for CNAME and MX records ends with a period:- Sending verification CNAME:
sparkpostmail.com. - Inbound MX records:
rx1.sparkpostmail.com.,rx2.sparkpostmail.com.,rx3.sparkpostmail.com. - Tracking and storage CNAME targets: append
.to the end of the value from Lettr
Records Not Propagating
Records Not Propagating
Gandi LiveDNS applies changes within milliseconds to its own servers, but external resolvers that have cached
previous records can take longer to refresh. Propagation typically completes within a few hours but can take up
to 72 hours in some regions.If verification fails after adding records, check the following:
- Wait at least 1–2 hours before your first verification attempt.
- Confirm the records exist using command-line tools:
- Use a web tool like WhatsMyDNS or dnschecker.org to verify propagation across multiple DNS servers worldwide.
Nameservers Not Pointing to Gandi
Nameservers Not Pointing to Gandi
If your records are saved in Gandi but not resolving, confirm that your domain registrar is pointing to Gandi’s
LiveDNS nameservers. You can check this with:The output should include Gandi’s LiveDNS nameservers (in the format
ns-{numbers}-{letters}.gandi.net). You
can find your domain’s exact assigned nameservers under the Nameservers tab in your Gandi domain settings.If the output shows a different provider’s nameservers, update them at your domain registrar. Nameserver changes
can take 4–72 hours to propagate globally.CNAME at Root Domain Not Supported
CNAME at Root Domain Not Supported
Gandi does not support CNAME records at the apex of a domain (e.g.
company.com). The Name field does not
accept @ for CNAME records — only subdomains work. This is a DNS protocol constraint: CNAME records cannot
coexist with other record types (like SOA or NS) that are required at the root.Always use a subdomain for your sending, tracking, and storage domains (e.g. mailing.company.com). If you need
to point your bare domain to another hostname, Gandi offers an ALIAS record type for that purpose.If Gandi shows a conflict error when adding a CNAME, check whether an existing A or CNAME record is already
present for that subdomain and remove it first.Wrong Record Type
Wrong Record Type
A common mistake is selecting the wrong type from the Type dropdown when clicking Add:
| Record | Correct Type |
|---|---|
| Sending verification | CNAME |
| DKIM | TXT |
| DMARC | TXT |
| Inbound mail | MX |
| Tracking SSL certificate | CNAME |
| Tracking traffic | CNAME |
| Storage certificate validation | TXT |
| Storage hostname pre-validation | TXT |
| Storage domain routing | CNAME |
DKIM Value Truncated or Chunked
DKIM Value Truncated or Chunked
The DKIM TXT value is a long string that often exceeds 255 characters. After saving the record, click the
pencil icon to re-open it and confirm the full value was stored. If it appears truncated, delete the record
and re-add it.If Gandi’s interface requires chunking for values longer than 255 characters, split the DKIM value into
255-character segments and wrap each in double quotes directly adjacent:
"first255chars""next255chars". Paste
this combined string into the Text Value field.When to Contact Support
When to Contact Support
If your DNS records are correctly configured (confirmed with
dig or dnschecker.org) and verification still
fails after 48 hours, contact Lettr support at support@lettr.com or through the in-app chat. Include your
domain name and the output of the dig commands above.Related Topics
Sending Domains
Learn about sending domain setup, SPF, DKIM, and DMARC.
Inbound Domains
Configure MX records to receive emails with Lettr.
Tracking Domains
Set up a custom tracking domain for click and open tracking.
Storage Domains
Serve email assets from your own custom domain.
Domains Overview
Understand domain types and how they work in Lettr.
Domain Verification Failures
Troubleshoot common DNS configuration and propagation issues.