MailMasker API
Claude Code
Domains and DNS

Disable a domain

DELETE/api/v1/domains/:domain

Who can use this: Site adminsAs Markdown

Turns the domain off (active becomes 0), so mail to it is refused from now on. Nothing is deleted: its DNS zone is still served and its extra addresses stay. Change a domain's settings with active true turns it back on.

Parameters

NameWhereWhat it is
domain required path The domain name.e.g. example.com

Good to know

  • A domain that isn't listed answers 404.
  • homelab-cli's dns domains disable turns mail_enabled off instead, through Change a domain's settings. Mail to the domain is refused either way.