Why Use Inbound Domains?
Inbound domains let your application participate in two-way email communication:- Capture replies — Feed replies to transactional emails (such as order confirmations or password resets) back into your system
- Trigger workflows — Parse and process incoming mail to create support tickets, update CRM records, or route messages to the right team
- Real-time events — Every received email generates a webhook event, so you can react in real time without polling
- Forwarding and routing — Forward incoming emails to other addresses or build dedicated support inboxes (like
support@yourcompany.com) that integrate directly with your internal tools
How Inbound Email Works
- A sender emails
support@yourcompany.com - Their email server looks up MX records for
yourcompany.com - MX records point to Lettr’s mail servers
- Lettr receives the email and processes it
- You receive a webhook or access the email via API
Adding an Inbound Domain
Via Dashboard
Add MX Records
Add the provided MX records to your DNS. These tell email servers to route mail to Lettr.
Inbound domains are managed through the Lettr dashboard. API endpoints for inbound domains are not currently available.
DNS Configuration
Add these MX records to your domain’s DNS settings:| Type | Host/Name | Priority | Value |
|---|---|---|---|
| MX | @ or subdomain | 10 | rx1.sparkpostmail.com |
| MX | @ or subdomain | 10 | rx2.sparkpostmail.com |
| MX | @ or subdomain | 10 | rx3.sparkpostmail.com |
If 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 means email servers will distribute delivery across all three servers equally. If one server is unavailable, senders automatically try the others.Verifying Your Inbound Domain
Via Dashboard
- Go to Domains → Inbound
- Find your domain and click Verify
- Lettr checks that all MX records are configured correctly
Inbound Domain Status
| Status | Description |
|---|---|
valid | All MX records found and configured correctly |
unverified | MX records not yet detected or incomplete |
Using Subdomains
We recommend using a subdomain for inbound email to separate it from your main domain’s email:| Configuration | Use Case |
|---|---|
mail.example.com | General inbound processing |
reply.example.com | Reply tracking for transactional emails |
support.example.com | Customer support emails |
bounce.example.com | Bounce processing |
Processing Inbound Emails
Once your inbound domain is configured, you can process incoming emails in several ways:Webhooks
Set up a webhook to receive notifications when emails arrive:Delete an Inbound Domain
Via Dashboard
- Go to Domains → Inbound
- Find the domain and click Delete
- Confirm deletion
Use Cases
Reply Tracking
Capture replies to transactional emails:- Set up
reply.example.comas an inbound domain - Send emails with
reply-to: reply-{ticket_id}@reply.example.com - Receive webhook when customer replies
- Parse the reply address to match the original email
Support Ticketing
Create a support email system:- Set up
support.example.comas an inbound domain - Configure webhook to receive incoming emails
- Create tickets in your system from email content
- Use metadata to track conversation threads
Email Parsing
Extract structured data from incoming emails:- Receive order confirmations, receipts, or notifications
- Parse email content using webhooks
- Extract relevant data and store in your database
Troubleshooting
MX records not verified
MX records not verified
- DNS changes can take up to 48 hours to propagate
- Verify all three MX records are added with correct priorities
- Use a tool like MXToolbox to check your MX records
- Ensure no conflicting MX records exist
Emails not being received
Emails not being received
- Confirm MX status is
validin the dashboard - Check that the sender’s email isn’t being blocked
- Verify webhook endpoint is configured and accessible
- Check spam filters at the sending server
Partial MX records detected
Partial MX records detected
- All three MX servers must be configured
- Check for typos in server hostnames
- Ensure all three records have priority 10
Conflict with existing email provider
Conflict with existing email provider
- Use a subdomain instead of your root domain
- You can only have one set of MX records per domain/subdomain
- Consider using
mail.example.comwhile keepingexample.comwith your current provider
Best Practices
- Use subdomains - Keep inbound separate from your main email
- Set up webhooks early - Ensure you’re receiving inbound notifications before going live
- Handle attachments carefully - Validate and sanitize uploaded files
- Monitor for spam - Implement filtering for inbound messages
- Test with multiple senders - Verify emails arrive from various email providers