Creates, reads, extends and deletes <domain> blocks inside a sending address created through the API.
Paths. GET /config/vmtas/name/domains — the address’s domains; GET, POST, PUT, PATCH and DELETE on /config/vmtas/name/domains/domain — read, create, replace, extend and delete a block; DELETE …/domains/domain/key/directive — remove all lines of a directive.
A domain name may contain macros — they are not expanded but carried into the generated file as is. A star works too: …/domains/*.
The block applies only to messages sent through this address, and for them it overrides what is set for the same domain in the pool the address belongs to.
First enable http-enable-api-config; a change requires the key from http-api-key.
What each method does:
| Method | Path | Action |
|---|---|---|
| GET | /config/vmtas/name/domains | the address’s domains |
| GET | …/domains/domain | the block’s lines |
| POST | …/domains/domain | create; an error if the block exists |
| PUT | …/domains/domain | replace the lines entirely |
| PATCH | …/domains/domain | append lines |
| DELETE | …/domains/domain | delete the block |
| DELETE | …/domains/domain/key/directive | remove all lines of a directive |
# disable signing for one receiver inside a sending address curl -s -X PATCH 'http://127.0.0.1:8080/config/vmtas/vmta1/domains/example.com' -H 'X-API-Key: KEY' -H 'Content-Type: application/json' -d '{"directives":["dkim-sign no"]}'
1 relation
curl -s 'http://127.0.0.1:8080/config/vmtas/vmta1/domains' curl -s 'http://127.0.0.1:8080/config/vmtas/vmta1/domains/example.com'
3 articles
◇Four value types the whole config is written inBoolean, domain pattern, regular expression and time interval — defined once in § 3.2 and then used by all directives.◇How the policy for a receiver is assembledSettings are assembled from the most general pattern to the most precise; the order of blocks in the file means nothing.◇Backoff mode — the queue's second personalityA queue that a receiver has started refusing switches to a parallel set of limits, retries and routes — ten directives that act only in this mode.