Prerequisites
Before setting up inbound email, ensure you have:- A verified Lettr account
- Access to your domain’s DNS settings
- An HTTP endpoint that accepts
POSTrequests and returns a2xxstatus. This is your forwarding URL, and it is required to create the domain.
Step-by-Step Setup
1
Create an Inbound Domain
Navigate to Domains → Inbound in your dashboard and click Create Inbound Domain. Enter the domain or subdomain you want to use for receiving emails, and the Forwarding URL where Lettr should deliver the mail it receives.
2
Configure MX Records
Add the provided MX records to your domain’s DNS settings. These records tell email servers to route mail to Lettr.
3
Verify MX Records
Click Verify MX Records on the domain’s page to confirm your MX records are properly configured. Once they verify, the domain shows This domain is receiving mail.
Adding an Inbound Domain
- Go to Domains → Inbound
- Click Create Inbound Domain (New Inbound Domain once you already have one)
- Enter your domain in Domain Name (e.g.,
mail.example.com) - Enter your endpoint in Forwarding URL (e.g.,
https://yourapp.com/webhooks/inbound). It must be a fullhttp://orhttps://address. - Optionally enter an Auth token. Lettr sends it to your endpoint in the
X-MessageSystems-Webhook-Tokenheader so you can verify each request. - Click Create Inbound Domain
POST request (sent by SparkPost, the mail infrastructure behind Lettr’s inbound servers). The endpoint must answer with a 2xx status. If it doesn’t, the dashboard shows the status your endpoint returned, for example “Your forwarding URL answered SparkPost with HTTP 403”, and the domain is not created, so you can fix the endpoint and try again.
Once the domain is created, the dashboard displays the MX records you need to add.
Inbound domain management is available through the Lettr dashboard. There is no public API endpoint for creating or managing inbound domains.
DNS Configuration
Add these MX records to your domain’s DNS settings:If you’re using a subdomain like
mail.example.com, set the Host/Name field to mail instead of @.Understanding MX Priority
All three MX records use the same priority (10), which provides load balancing:
With equal priority, sending servers distribute email across all three servers. If one is unavailable, the others handle delivery automatically.
Verifying Your Domain
After adding MX records, verify they’re properly configured:- Go to Domains → Inbound and open your domain
- Click Verify MX Records
- Wait for the verification to complete
Domain Status
Each inbound domain shows one status that tells you whether it is receiving mail, or what is missing. In the Inbound Domains list:
A domain can show both MX not verified and No forwarding URL. The domain’s page shows the same verdict as This domain is receiving mail or This domain is not receiving mail yet, with each missing piece listed.
Mail Forwarding
The domain’s page has a Mail Forwarding card where you can add or change the forwarding URL and auth token, then click Save forwarding URL. The new URL is tested the same way as when the domain is created. Leave the Auth token field blank to keep the token that is already set.Inbound domains created before forwarding URLs were required have no forwarding URL, so mail sent to them is accepted and then discarded. Their Mail Forwarding card shows Not configured. Add a URL there to start receiving mail.
Using Subdomains vs Root Domain
We recommend using a subdomain for inbound email:DNS Propagation
DNS changes can take time to propagate:Next Steps
Email Parsing
Understand the payload posted to your forwarding URL
Routing
Route emails to different handlers
Attachments
Handle incoming attachments
Inbound Domains
Learn more about domain configuration