Domains and DNS
Give an account an extra address
POST/api/v1/domains/mail-aliases
Who can use this: Site adminsAs Markdown
Mail to the address goes to the account, which may also send from it unless send_enabled is false. For a whole domain, that is every address there without a mailbox or entry of its own. Giving an address that is already routed moves it to the new account.
Parameters
| Name | Where | What it is |
|---|---|---|
| source_pattern required | body | An exact address, or @ and a domain for the whole domain.e.g. sales@example.com |
| destination required | body | The account it goes to. It isn't checked, so make sure it is a real one.e.g. you@example.com |
| send_enabled | body | Whether the account may send from it. true if left out. |
Good to know
- A domain that isn't listed yet is added, with a DNS zone but with mail off. The account can send from it, but mail sent to it arrives only once mail is turned on (Change a domain's settings).
- If that DNS zone can't be created, the answer is 502 and nothing is added.