Verify a domain
You can only send from a domain you own and have verified. Verification proves ownership and sets up DKIM so your mail is signed and lands in inboxes.
- In the dashboard, open Domains and click Add domain.
- Enter your domain, for example
yourdomain.com. - Duta shows a set of DNS records (DKIM, and a custom MAIL FROM record).
- Add those records at your DNS provider (Cloudflare, Namecheap, etc.).
- Back in the dashboard, wait for the status to turn verified. DNS can take a few minutes to propagate.
Sending
Section titled “Sending”Once verified, send from any address on that domain:
await duta.emails.send({ from: "hello@yourdomain.com", to: "user@example.com", subject: "Hello", text: "It works.",});If you try to send from an unverified domain, the API returns 403. See Errors.
Custom MAIL FROM
Section titled “Custom MAIL FROM”Duta sets up a custom MAIL FROM subdomain (for example mail.yourdomain.com). This improves SPF alignment and brands the “mailed-by” line that Gmail shows. It is configured automatically as part of domain onboarding.