Connect your company’s sending domain so automations and campaigns arrive from branded addresses. Email domains live under Company → Email Domains (/company/email-domains).
Why Verify a Domain?
- Deliverability: DKIM/SPF/DMARC alignment through Mandrill improves inbox placement.
- Branding: set a custom default From name/email per domain (
notifications@yourdomain.cominstead of the LaunchSMS fallback). - Attribution: verified domains are required for some ESPs before bulk sending is allowed.
Until a domain is verified, LaunchSMS uses the global fallback in config('mail.from.*').
Adding a Domain
- Enter the root domain (no protocol) in the “Add Domain” form. Validation enforces DNS-safe characters and prevents duplicates per company.
- LaunchSMS calls Mandrill’s
add-domainAPI (viaApp\Services\MandrillService). The response includes:- DKIM selectors/targets (primary + secondary).
- TXT verification key (
mandrill_verify.*). - SPF + DMARC templates.
- A new
email_domainsrow stores:dkim_host/dkim_host_secondarydkim_target_primary/secondaryverification_host/valuespf_host+spf_recorddmarc_host+dmarc_record- Default From name/email populated with the current user and
notifications@domain.
- If this is your first domain, it’s flagged as the default sender automatically.
- The UI renders all records in a table so you can copy/paste into your DNS provider.
Verifying DNS (“Check Status”)
- After publishing the CNAME/TXT entries, click Check Status. LaunchSMS requests Mandrill’s
check-domainendpoint. - If DKIM + SPF both pass, the domain moves to
status = verified,verified_at = now(). - If not, the status stays
pendingandverification_errorstores Mandrill’s explanation (e.g., “Waiting for DKIM CNAME”). The UI surfaces that message in a warning alert, so you know which record still needs attention. - LaunchSMS automatically refreshes the TXT verification instructions if Mandrill rotates the key.
Managing Sender Defaults
- Each verified domain can store a custom From name/email. Validation forces the email to use that domain (regex
^[^@\s]+@domain$). - Mark a verified domain as default to update all future emails. LaunchSMS clears
is_defaulton the other rows first so only one domain is considered active at a time. - When the automation engine needs sender info,
EmailDomain::resolveSenderForCompany:- Pulls the latest verified domain ordered by
is_defaultthenverified_at. - Falls back to app defaults if none exist.
- Pulls the latest verified domain ordered by
Removing a Domain
- Deleting a domain removes its records and (if it was default) promotes the next verified domain in line.
- There’s no API call to Mandrill when deleting; remove DNS records manually if you decommission a domain.
- Automations revert to the fallback sender until you set another default.
Relationship to Unsubscribe Pages
- Email domains and unsubscribe tooling live in the same Company section. Each domain card includes shortcuts to:
- Unsubscribe Survey (
/company/unsubscribe-settings) to customize post-unsubscribe reasons. - Unsubscribe Insights to analyze opt-out data.
- These links help enforce good sending hygiene once you’re sending from your own domain.
- Unsubscribe Survey (
Best Practices
- Add DNS immediately – Mandrill expects the CNAME/TXT entries before you click Check Status. Propagation can take up to 48 hours.
- Publish both DKIM entries – the UI shows primary + secondary selectors. Configure both so Mandrill can rotate keys without downtime.
- Adopt a DMARC policy – LaunchSMS seeds
p=nonefor monitoring. Update toquarantineorrejectonce you’re confident every mail stream is aligned. - Use unique From emails – e.g.,
notifications@,billing@, ormarketing@. Avoid generic accounts likeinfo@already managed by other systems. - Document changes – keep screenshots of DNS records and verification timestamps. Helpful when your IT/security team audits outbound mail.
- Re-check after changes – DNS providers sometimes rewrite targets. Use “Check Status” any time you modify DKIM/SPF to confirm Mandrill still sees valid records.
Once verified, the domain is available everywhere LaunchSMS sends email (automations, campaign builders, manual messages), ensuring a unified sender experience.