MailMasker API
Claude Code
Domains and DNS

Block or allow any address

POST/api/v1/domains/recipient-access

Who can use this: Site adminsAs Markdown

Takes effect at once, for mail from every sender. Unlike blocking your own addresses, nothing here checks whose address it is.

Parameters

NameWhereWhat it is
recipient required body The address. Any address, not only one of yours.e.g. shop@example.com
action required body REJECT to block, or OK to allow ahead of every other check. Other Postfix actions, such as DISCARD, are passed on as written.e.g. REJECT
reason body Why. A blocked sender sees it in the rejection.e.g. Sells addresses

Good to know

  • An address already on the list is updated in place, and stays with the account or admin who first made it.
  • Nothing stops this blocking an account's own login address, which cuts off all of its mail.