<domain>
An optional line for a queue of the http-delivery type (type). It names a file from which the node takes additional headers and adds them to the request carrying the message. Each header is on its own line in the file.
Why it exists. Credentials in the http-delivery-url address are forbidden by the manual, while the handler almost always requires authorization. The headers file is the only provided way to pass it.
It is good not only for authorization: any constant header that must accompany every request goes here too — a source tag, a contract version, a node identifier.
Permissions 600, owner — the service user. The file holds a working key, and that is no exaggeration.
One file per handler, not per queue. If there are several queues of the http-delivery type and they share one handler, there is no point multiplying the key across files — it would have to be changed in all of them.
The line is optional. Without it the request goes out without additional headers; for an open handler that is enough.
# the access key lives in the file — it must not be kept in the address <domain feedback.example.com> type http-delivery http-delivery-url https://hub.example.com/api/v1/feedback http-delivery-extra-headers /etc/pmta/http-delivery-headers.txt</domain>
what people get wrong and how it ends2 mistakes▶
our experience
§ 3.3.10.112.2
1 relation
pmta show settings feedback.example.com/vmta1 | grep -i extra-headers ls -l /etc/pmta/http-delivery-headers.txt
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.