Runs node console commands right from the browser — as if an operator logged into the machine and typed pmta.
The page link appears only while the PowerMTA service on the machine is running.
🔴 Message deletion and queue mode changes both go through here. Running commands is opened by the operator level in http-access; the monitor level is not enough for this page.
For a program there is POST /command — with the key from http-api-key.
What question the page answers:
| Question | This one or not |
|---|---|
| run a command without logging into the machine | yes — the operator level |
| run it from a program | no — POST /command |
| who ran what through the monitor | no — the request log, if http-log-requests is on |
# the same from a program: a command and a key curl -s -H 'X-API-Key: KEY' 'http://127.0.0.1:8080/command' -F command='show status' -F format=json-text
1 relation
grep -n 'http-access' /etc/pmta/config grep -n 'http-log-requests' /etc/pmta/config
3 articles
◇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.◇The group that grants management rightsMembership in the pmta group gives an unprivileged user the right to call the node’s commands and use submission.◇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.