<acct-file>
The line sets the directory where the engine moves an accounting file when it closes it. By default there is no moving at all.
🔴 And this is the main thing to know about the whole block: without this line move-interval is silently ignored. The manual says so directly: moving is not done, and the interval, if set, quietly does not work. No warning, no error.
max-size works without it — the new file simply starts in place, with an incremented number in its name.
And the third link: delete-after works only while moving is turned off. As soon as files move away, the retention period no longer applies to them — someone else looks after the destination directory.
The directory must be on the same volume. Moving over the network is not supported, and the destination must differ from the directory where the file was created.
The template’s file block used to have move-interval 5m without this line — that is, the interval did nothing. It was removed on August 29, 2026. What works is max-size 25M (a new file in place) and delete-after 7d — the latter precisely because moving is turned off.
A directory is needed only where someone else picks up the files:
| Value | When |
|---|---|
| do not set (default) | files are read and deleted in place |
| a directory path | an external collector picks them up from a separate place |
Requirements for the directory: the same volume, not the same directory as the file itself. Not over the network.
# the interval takes effect only together with a directory <acct-file /var/log/pmta/acct.csv> move-to /var/log/pmta/archive move-interval 1h </acct-file>
what people get wrong and how it ends3 mistakes▶
§ 3.3.11.3
§ 3.3.11.1
§ 3.3.11.2
1 relation
delete-after<acct-file>The retention period applies only while moving is off; the archive is then looked after by someone else. § 3.3.11.1move-interval<acct-file>Without a destination directory the interval is silently ignored — nothing is moved. § 3.3.11.2max-size<acct-file>It works without a directory too: then the new file simply starts in place. § 3.3.11.4
ls -la /var/log/pmta/archive/ 2>/dev/null | tail -5
3 articles
◇What the node tells about itself and through which channelsSeven observation surfaces: the web monitor, the console in four formats, the log, accounting, accounting search, metrics and export to external analytics.◇Two inbound report processors and what to do with themBounces by message and complaints are parsed by two identically structured blocks; each has its own address list and its own pair of decisions about the message’s fate.◇Five ways for a queue to hand off a messageA queue does not have to use SMTP: it can write to a file, run a program, call over HTTP or discard.