<domain>
It works for a file queue (type). It decides what exactly ends up on disk:
The file appears twice. The node first creates it with a .tmp extension and renames it to .msg only after writing it to the end. Whoever parses these files must skip .tmp — otherwise sooner or later they will read half a message.
newfile-pickup is almost always better than the default. It differs from it by two header lines but keeps the envelope.
append-mbox — when there are many small messages. A separate file per message at large volumes turns the directory into a file system problem.
Read the shared file properly. The node holds a lock while appending; the vendor advises using pmtagetfile rather than reading the file directly.
# an archive that keeps the envelope <domain archive.example.com> type file file-destination /var/spool/archive/$isodate/ file-format newfile-pickup</domain>
what people get wrong and how it ends2 mistakes▶
our experience
§ 3.3.10.110.1
1 relation
pmta show settings archive.example.com/vmta1 | grep -i file-format ls -la /var/spool/archive/ | head -10
3 articles
◇How a message gets into the engineSix described submission methods: extended SMTP, four language bindings and a directory the node watches on disk.◇Who is allowed to submit mail and for whom to accept itOut of the box, the node accepts submission only from the machine itself; two different questions — “who can send through us” and “for whose addresses we accept mail” — are answered by different directives.◇Headers the sender uses to control deliverySix control headers let the submitting side choose a stream, tag a message with a job, set signing options and the key, the envelope identifier and the schedule; each is allowed separately and per source.