<transmissions-api>
The default is 100M. The line limits the payload size of a request to the Transmissions API.
The syntax is strict: a number and a mandatory size multiplier — B, K, M or G. The engine will not accept a number without a multiplier. Nor a value above 2G.
The manual specifically warns: messages larger than 100 MB may cause slow acceptance and slow delivery due to increased processing time. That is, the default sits exactly at the boundary beyond which the vendor itself advises not to go.
Do not confuse it with max-message-size of the source block: that one limits a message arriving over SMTP, this one a request arriving over HTTP.
The other half: 100M is not a recommendation but a boundary beyond which the manual promises slow acceptance and slow delivery. Raise it with that in mind.
The Hub sets the per-message limit with another line: max-message-size with the value 30M in the address-based submission sources — from the machine itself and from the allowed addresses.
What to set. Count from the request size, not the message size:
| Value | When |
|---|---|
| 100M (default) | suits almost always: beyond this boundary the vendor promises a slowdown |
| less | it is known which messages are submitted, and the limit is set with a margin over their size |
| more | attachments are large, and slower acceptance and delivery are accepted deliberately |
The multiplier is mandatory, and the engine will reject a value above 2G.
# a limit on the request payload, not on the message itself <transmissions-api> max-message-size 100M</transmissions-api>
what people get wrong and how it ends2 mistakes▶
§ 3.3.20.5
§ 3.3.20.5
1 relation
grep -n -A3 '^<transmissions-api>' /etc/pmta/config grep -n 'max-message-size' /etc/pmta/config /etc/pmta/virtualhost.txt
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.