Knowledge base

<spool>

Where the queue lives on disk
One directory is mandatory, several are for speed

The block’s name is the path itself to the directory: <spool /var/spool/pmta>. Inside there are four lines, all about the behavior of this directory.

At least one directory is mandatory. Additional ones are added for speed: the manual names the reason directly — to spread the I/O load across several disks.

priority decides which directory is used first: the higher the priority, the earlier it is used, and with equal priorities the directories alternate. min-free-space sets the free space threshold below which the directory stops accepting messages.

The remaining two lines are about special modes. deliver-only turns a directory into “deliver only”: messages from it are delivered, and new ones are not written. delete-file-holders decides the fate of the temporary files the engine keeps to save I/O.

There are also two obsolete forms of the same thing: spool and spool-min-free-space at the node level, both replaced by this block.

Example configuration
# two directories on different disks: primary and backup
<spool /var/spool/pmta/primary>
    priority 50
    min-free-space 1G
</spool>

<spool /var/spool/pmta/secondary>
    priority 10
    min-free-space 1G
</spool>
yellow — — directive names, blue — blocks. They are highlighted the same way in the text of the card.
Compatibility
PowerMTA 6.0
described in the manual of this version · platform: any
The vendor does not state the first version for every directive — there is no note here. The name also appears in the 5.0 edition of the manual.
In the Hub
Cost of a mistake
reversible: harms only while it is set
Scenarios
Prepare a node for sending