← Blog

Use your own domain for email

·3 min read

You already own a domain. Maybe it's on Namecheap, GoDaddy, Cloudflare, or somewhere else. You want an email address on it — hello@yourdomain.com — without moving your domain anywhere or risking losing it.

One command does everything. No installation required — just Node.js, which you already have.

Create your mailbox

npx domani email create hello@yourdomain.com

npx runs domani directly without installing anything. The CLI handles the rest — authentication, domain verification, DNS setup — all inline.

If you use domani regularly, install it once with npm i -g domani and drop the npx.

What happens

Since your domain isn't in your account yet, the CLI gives you all the DNS records to add at once:

Terminal

Add those 5 records in your registrar's DNS panel, then wait. The CLI polls automatically — no need to come back and run another command.

At Namecheap: Advanced DNS → Add New Record

At GoDaddy: DNS → Add Record

At Cloudflare: DNS → Add record

Once DNS propagates, the CLI finishes on its own:

Terminal

What just happened

  • TXT record — proved you own the domain. Can be removed after.
  • MX record — routes incoming email to domani.
  • SPF + DKIM + DMARC — authenticate your outgoing emails so they don't land in spam.
  • Your domain stays at Namecheap (or wherever). Nothing changed there.

Plans

Your first custom domain mailbox is free. If you need more — multiple addresses on the same domain, or mailboxes across several domains — that's Pro ($9/month).

# Free — your first mailbox on your domain
npx domani email create hello@yourdomain.com

# Need more? The CLI guides you through upgrading inline
npx domani email create support@yourdomain.com

Send and receive

# Read your inbox
domani email inbox hello@yourdomain.com

# Send an email
domani email send hello@yourdomain.com --to friend@example.com --subject "Hello" --body "It works"

# Forward all incoming mail to Gmail
domani email forward hello@yourdomain.com --forward-to you@gmail.com

Or open the web inbox directly: domani.run/inbox

Want zero DNS management?

Transfer your domain to domani (domani transfer yourdomain.com) and all DNS records are configured automatically. Good if you want everything in one place.

emailtutorialimport