<domain>
There is no default. The value is name=header_HEADER pairs separated by commas: on the left the metadata field name on the service side, on the right the message header to take the value from.
The manual names three conditions under which the line does not work, all in one paragraph:
The parent add-x-msys-api-header is not set — the directive is ignored. The service header is already in place in the message — ignored. The node is configured to remove the named header — the line “may not be effective”.
And a fourth limitation separately: it does not work for headers the node adds itself. That is, the reception trace or a message identifier added by the engine cannot be carried into metadata.
The second half: the conditions are silent. None of the four produces an apply error. The line is in the configuration, looks working, but the metadata is empty — and which of the conditions triggered can only be found by elimination.
If it were used, the third condition would trigger at once: the Hub writes remove-header with a list of platforms’ service headers in all submission sources, and an attempt to carry any of them into metadata would be useless.
What to set. The value is pairs; you have to choose what to carry:
| Value | When |
|---|---|
| do not write it | the service’s metadata is not used |
| your own pair | messages have a header with a label useful for analysis — client, segment, campaign |
The header to carry must be your own and come from outside: those added by the node do not work by design, and removed ones will not arrive.
# the header must come from outside and not be on the removal list <domain {sparkpost}> add-x-msys-api-header true add-x-msys-api-header-metadata job=header_X-MyJobId</domain>
what people get wrong and how it ends2 mistakes▶
§ 3.3.10.113.2
§ 3.3.10.113.2
1 relation
grep -n 'add-x-msys-api-header' /etc/pmta/config grep -n 'remove-header' /etc/pmta/config /etc/pmta/virtualhost.txt
3 articles
◇The activation key is a prerequisite for installation, not a step after itWithout an activation key from SparkPost support the engine neither installs nor runs, and the license tier sets the outbound connection ceiling: on Standard everything above 200 is ignored.◇Cloud restrictionsClouds restrict outbound mail on port 25 until you ask them to lift the limit, and mailbox providers treat their address ranges with suspicion.◇How to turn a sending plan into hardwareTwo constants for sizing any node: about 2 KB of memory per queued recipient and spool space proportional to the total size of the messages.