The block does exactly the same as include with an address: it fetches a configuration file over HTTP. There is one difference, and a practical one — request headers can be set.
What for. An address in the ordinary form cannot contain a user name, a query string or a fragment — that is, there is nowhere to pass an access key through it. The Authorization header solves this, and that is exactly the example the manual gives.
Where it is written is the same as for include: the root of the file, <source>, <domain>, <virtual-mta>, <smtp-pattern-list>. The address must be absolute, with the http or https scheme, without a user name, query string or fragment.
The node does not parse the headers — it only checks the form of the line. What exactly you pass and where remains your responsibility.
# the access key is passed in a header, not in the address <include-config https://10.1.2.3:4000/my/config/file> http-extra-headers /etc/pmta/include-config-http-headers.txt </include-config>
0 relations
3 articles
◇Accept, route, deliverA message’s path inside the node: accept, decide where, deliver — and all the settings live between these three steps.◇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.◇Reloading settings versus restarting the serviceThe configuration is read at startup, and after that edits are picked up by the reload command — except for the directives the manual marks as requiring a restart.