<domain>
The default depends on the recipient: true for the reserved domain {sparkpost} and false for all others.
The line adds to the message the service header X-MSYS-API — the one that sets options on the SparkPost side. Along the way it carries the message’s job label into the service’s campaign field, if there is a label.
A header already in place is left untouched. If the submitting side set it itself, the directive is ignored entirely — the value remains its own.
All of this works inside the traffic redirection mechanism: the manual describes it as a way to add capacity, for example for a season. The {sparkpost} domain is created separately, and in it auth-username and auth-password are set — a name with an optional subaccount number and the service’s access key.
The job label is exactly what is not set here: reading the header with it is not enabled in any submission source. That is, enabling redirection would first require introducing labels.
The second half: the subaccount number is not set here, but in the authentication user name — as a prefix to it. And if the access key itself belongs to a subaccount, the number in the name is ignored.
If it were used, one would have to start not with this line but with job labels: process-x-job is false here, and there would be nothing to carry into the campaign.
What to set. The default is almost always right:
| Value | When |
|---|---|
| do not write it | the default differs for {sparkpost} and the others — and both are right |
| false for {sparkpost} | the submitting side sets the header itself and more fully |
| true for other recipients | pointless: only SparkPost understands the header |
The third row is not a recommendation but a warning: enabled for an ordinary recipient, the line will add a header to the message that goes to the recipient with no benefit at all.
# the domain is reserved; the access key and name set the service account <domain {sparkpost}> auth-username SMTP_Injection:X-MSYS-SUBACCOUNT=123 auth-password d41d8cd98f00b204e9800998ecf8427e add-x-msys-api-header true</domain>
what people get wrong and how it ends2 mistakes▶
§ 3.3.10.113.1
§ 3.3.10.113
1 relation
grep -n -A5 'domain {sparkpost}' /etc/pmta/config
grep -n 'process-x-job' /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.