<source>
The default is 10m. The line sets how long the engine waits for data from the submitting side in the body transfer phase — after the DATA or BDAT command.
The manual stipulates separately: it applies only to incoming connections. Waiting during delivery is governed by recipient settings.
The paired line is smtp-command-timeout: the same task, but for the command phase, before body transfer.
That is, a generous limit turns into a way to tie up the receiver: it is enough to open connections, start a transfer and fall silent.
The ceiling of incoming connections is set, though: total-max-smtp-in 1000 in both configurations, baseline and working. Connections on the submission listener, which listens to the whole network, are held for up to ten minutes of silence each.
What to set. The limit is calculated from who submits:
| Value | When |
|---|---|
| 10m (default) | submission from known platforms in a narrow range |
| 2m–5m | the port is open to the network: your own platform is not silent that long, and a stranger will not hold a slot for long |
Too strict a limit breaks the transfer of large messages over a slow channel — calculate from the message size and the submitting side’s speed, not from your own impatience.
# the port is open to the network — a silent connection must not hold a slot for ten minutes <source 0/0> smtp-data-timeout 3m smtp-command-timeout 2m </source>
what people get wrong and how it ends2 mistakes▶
our experience
§ 3.3.7.56
1 relation
grep -n 'smtp-data-timeout\|smtp-command-timeout\|total-max-smtp-in' /etc/pmta/config /etc/pmta/virtualhost.txt pmta show status | grep -i 'smtp-in\|inbound'
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.