Knowledge base

<transmissions-api>

The behavior of the Transmissions API entry point
Keys and limits of the HTTP entry point

The block describes the entry point itself, not the port it listens on: the port is declared separately, with a <transmissions-api-listener> block, and the certificate lives there too.

Inside there are five lines. api-key — access keys, one line per key; this is the way to give different applications different passes. max-message-size — the limit on the request payload, 100M by default. And three logging lines: log-requests, log-data, log-tls — each more detailed than the previous one.

Settings of the mail itself — permissions for service headers, stream selection — are not set here: there is a source block with the reserved name {transmissions-api} for them.

Example configuration
# the entry point, its port and the mail settings — three different blocks
<transmissions-api-listener 1.2.3.4:8585>
    tls-certificate /etc/pmta/transmissions-api-certificate.pem
</transmissions-api-listener>

<transmissions-api>
    api-key 14ac5499cfdd2bb2859e4476d2e5b1d2bad079bf
    max-message-size 100M
    log-requests yes
</transmissions-api>

<source {transmissions-api}>
    process-x-virtual-mta yes
</source>
yellow — — directive names, blue — blocks. They are highlighted the same way in the text of the card.