Checks the syntax of the configuration file without reloading the running configuration.
This command belongs before every apply. It catches grammar violations — Error in line 11 of /etc/pmta/config: argument missing — but not a line written in the wrong block: that one parses fine and applies silently.
When to call it:
| Question | This command or not |
|---|---|
| is there a syntax error | yes |
| what applies after the apply | no — show settings |
| apply the configuration | no — reload |
# check first, apply only then pmta test configpmta reload
2 relations
pmta test config; echo "exit=$?"
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.