<domain>
It works for an http-delivery queue (type) and is mandatory for it. It sets the address to which the node sends a POST request with the message as a JSON object — one message per request.
The address is restricted. It must be absolute and begin with the http or https scheme. It must not contain credentials, a query string or a fragment — the manual lists these three parts separately. The host is a name or an address; an IPv6 address goes in square brackets. The port is optional: without it, 443 is implied for https and 80 for http.
Credentials do not go here. Since they cannot be written into the address, the authorization header is put into a file and plugged in with the http-delivery-extra-headers line.
https only. Message contents go to this address; an unencrypted channel is out of place here under any circumstances.
A name instead of an address. The handler moves, the address changes — the name survives the move, and the configuration line stays the same.
The path is worth versioning. /api/v1/… makes it possible to change the processing format without touching node configurations.
# a complaint handler: https only, a name, a versioned path <domain feedback.example.com> type http-delivery http-delivery-url https://hub.example.com/api/v1/feedback</domain>
what people get wrong and how it ends2 mistakes▶
our experience
§ 3.3.10.112.1
1 relation
pmta show settings feedback.example.com/vmta1 | grep -i http-delivery-url curl -s -D - -o /dev/null -X POST https://hub.example.com/api/v1/feedback | head -1
3 articles
◇How a message gets into the engineSix described submission methods: extended SMTP, four language bindings and a directory the node watches on disk.◇Who is allowed to submit mail and for whom to accept itOut of the box, the node accepts submission only from the machine itself; two different questions — “who can send through us” and “for whose addresses we accept mail” — are answered by different directives.◇Headers the sender uses to control deliverySix control headers let the submitting side choose a stream, tag a message with a job, set signing options and the key, the envelope identifier and the schedule; each is allowed separately and per source.