<spool>
The default is 1, the lowest. Values range from 1 to 100.
The rule is simple: the directory with the higher priority is always used until it fills up. Once it is full, the engine moves on to the next one by rank. Directories with the same priority alternate in rotation.
Hence two layouts. Different priorities give a hierarchy: a fast disk as the main one, a slow one as a spare. Equal priorities spread the I/O load evenly across several disks — which, according to the manual, is why additional directories are added in the first place.
What counts as “full” is decided by the neighboring min-free-space.
This may be exactly what you need — or it may be unexpected if the second directory was meant as a spare. The difference shows only under load, when files turn up somewhere other than expected.
The line would be needed on a node with several disks — a layout the Hub does not offer today.
What to set. The value is chosen by the intended layout:
| Value | When |
|---|---|
| do not write it | a single directory — the most common case |
| the same for all | several disks, split the load evenly |
| different | a hierarchy: a fast disk as the main one, a slow one as a spare |
It is worth picking numbers with gaps (50 and 10, not 2 and 1): otherwise there will be nothing left to put a third directory between them later.
# hierarchy: a fast disk as the main one, a slow one as a spare <spool /var/spool/pmta/primary> priority 50</spool> <spool /var/spool/pmta/secondary> priority 10 </spool>
what people get wrong and how it ends2 mistakes▶
§ 3.3.2.3
our experience
2 relations
grep -n -A4 '^<spool' /etc/pmta/config du -sh /var/spool/pmta/*
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.