Global
The line decides whether to switch the log file automatically at midnight. The default is true.
Together with log-rotate it sets the history depth. Switching at midnight plus eight files means a little over a week — one file per day.
It is turned off in exactly one case: when the system looks after the file. Then the two rotations stop competing, and the system’s rule remains the only one.
Size-based switching is not turned off by this line — there is none here at all: the engine log has no size ceiling, unlike accounting files.
🔎 Meanwhile, next to log-file the template has a comment saying rotation is done by logrotate. Two rotations run at the same time, and this is worth bringing to one form: either turn it off here and keep the system one, or remove the system rule and rely on the built-in one.
Choose one rotation out of two:
| Value | When |
|---|---|
| true (default) | the engine itself looks after the log |
| false | system rotation looks after the file |
Keeping both is a source of confusion, not of reliability.
# the system looks after the file — the built-in switching is turned off log-file /var/log/pmta/log log-auto-rotation false
what people get wrong and how it ends1 mistake▶
our experience
1 relation
ls -la --time-style=long-iso /var/log/pmta/log*
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.