Creates, reads, extends and deletes sending addresses with requests: an address is described by a set of directive lines in JSON.
Paths. GET /config/vmtas — the names of addresses created through the API; GET, POST, PUT, PATCH and DELETE on /config/vmtas/name — read, create, replace, extend and delete an address together with nested domains; DELETE /config/vmtas/name/key/directive — remove all lines of one directive.
Lines are placed in the order they were added, and one directive can repeat.
Enable it first: http-enable-api-config yes, off by default. The engine checks every change with a reload and rejects the change if the reload fails.
The same <virtual-mta> as in the file, only created by a request — and it can only be edited further by requests.
Reading goes through without a key from an address with the operator level or higher in http-access; a change requires the key from http-api-key.
What each method does:
| Method | Path | Action |
|---|---|---|
| GET | /config/vmtas | the names of addresses created through the API |
| GET | …/name | the address’s directive lines |
| POST | …/name | create; an error if the address exists |
| PUT | …/name | replace the lines entirely |
| PATCH | …/name | append lines |
| DELETE | …/name | delete together with nested domains |
| DELETE | …/name/key/directive | remove all lines of a directive |
# create a sending address with a request curl -s -X POST 'http://127.0.0.1:8080/config/vmtas/vmta1' -H 'X-API-Key: KEY' -H 'Content-Type: application/json' -d '{"directives":["smtp-source-host 192.0.2.10 mta1.example.com"]}'
3 relations
Receiver policy inside an addressA neighboring catalog entry. § 8.3.3.8
Effective settings of a sending addressThe same output from the command line. inference
The sending address — what it is made ofThe mechanism that is visible here. § 8.3.3
curl -s 'http://127.0.0.1:8080/config/vmtas' curl -s 'http://127.0.0.1:8080/config/vmtas/vmta1'
3 articles
◇Warm-up built into the engineA warmed-up address hands the first N messages of the day for each receiver to its cold partner; the partner sends them itself and builds history.◇The sending address — what it is made ofA named set of everything that is a property of the address: which IP the message leaves from, how the node introduces itself, what it signs with and how fast it sends.◇A group of sending addresses with traffic sharesA named group of sending addresses; without shares messages are distributed in rotation, with shares in the given proportion, in steps of a tenth of a percent.