Skip to main content

Domains Command

Manage your sending domains for email authentication.

Overview

Available subcommands:
  • list - List all domains
  • create - Add a new domain
  • get - Get domain details
  • verify - Verify domain DNS configuration
  • delete - Remove a domain

List Domains

List all domains in your AhaSend account with their verification status, DNS record status, and other details. The list can be filtered and paginated for large numbers of domains.

List Flags

Create Domain

The command returns DNS records that need to be configured:
  • SPF Record: v=spf1 include:spf.ahasend.com ~all
  • DKIM Record: CNAME mail._domainkeymail._domainkey.ahasend.com
  • DMARC Record: v=DMARC1; p=none;

Verify Domain

After configuring DNS records:
DNS propagation can take up to 24 hours, but typically completes within minutes.

Get Domain Details

Delete Domain

Deleting a domain is irreversible. You’ll need to re-add and re-verify the domain if you want to use it again.

Common DNS Setup

Existing SPF Records

If you already have SPF records, merge them:

Subdomains

You can add subdomains for sending:

Next Steps