Globaldeprecated
The line named the directory in which the engine keeps message files while they wait for delivery.
The directive has been declared deprecated. The replacement is the <spool> block, where the block name is the directory path.
The difference is not in where messages are stored but in what can be said about the directory. The block has priority — the order of use, min-free-space — the free space threshold, deliver-only — the draining mode, and delete-file-holders — the fate of temporary files. The line had none of this.
That is why the block form appeared: several directories with different properties cannot be described with a line.
In practice, though, the issue is not a conflict but a loss: staying with the line, you are deprived of all directory settings — including the free space threshold, without which running out of space stops the whole node.
The deprecated line is worth looking for in configurations assembled by hand before the move to the Hub: it does occur there, and with it all directory settings are missing.
What to set. Nothing: the line should be replaced with a block.
| Value | When |
|---|---|
| do not write | always: the directory is declared with a block |
| directory path | only in an old configuration that has not been migrated yet |
The migration is mechanical: the path becomes the block name, and the settings the line could not have are added inside.
# this is how it was before — a path without any settings spool /var/spool/pmta
what people get wrong and how it ends2 mistakes▶
our experience
§ 3.3.1.5
1 relation
grep -n '^spool ' /etc/pmta/config grep -n -A4 '^<spool' /etc/pmta/config
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.