Returns jobs — groups of messages — with the number of recipients and volume in the queue.
The call is GET /jobs?format=json (or xml), one job — GET /jobDetail?format=json&jobid=123.
This is the “Top jobs” top: the length is set by http-default-max-items, ten lines by default.
The job is assigned to a message by the submitting side. Over SMTP this is the X-Job header, and it is read only if process-x-job is allowed for the source — by default it is not. With mail merge, the job is set with the *jobid variable, not a header.
Access is decided by http-access based on the address the request came from — the monitor level is enough for reading. The key from http-api-key in the X-API-Key header grants full access from any address.
What to ask this endpoint:
| Question | This one or not |
|---|---|
| which campaigns are in the queue now | yes, if jobs are assigned |
| one job in full | yes — /jobDetail |
| all jobs, not the top | no — show jobs: the command defaults to “all” |
| what happened yesterday | no — that is accounting |
# jobs in the queue and one job curl -s 'http://127.0.0.1:8080/jobs?format=json'curl -s 'http://127.0.0.1:8080/jobDetail?format=json&jobid=123'
1 relation
curl -s 'http://127.0.0.1:8080/jobs?format=json' | head -40 pmta show jobs grep -rn 'process-x-job' /etc/pmta/
3 articles
◇A license for a fleet, not for a serverThe license is not bound to a server: it is installed on as many machines as the instance limit allows, and the nodes send volume statistics to the vendor every hour.◇How the node selects a source and combines its settingsA connection falls under all source blocks whose addresses cover it, and they act merged — the narrow one overrides the wide one; named blocks are attached only by direct reference.◇Address lists — named and unnamedA list of addresses, domains, patterns or hashes; a named one is attached by directives such as suppression, an unnamed one lives inside an inbound mail processor.