<transmissions-api-listener>
A PEM file with certificate authority certificates. The input uses them to verify the certificate sent by the submitting client. There is no default.
The input does not take its own certificate from here — there is tls-certificate for that. This line is about other parties’ certificates.
The manual contradicts itself about where to write the line. Section § 8.1.2 says to put it “inside the <transmissions-api> tag”, while the reference § 3.3.21.12 and the chapter 15 index — inside <transmissions-api-listener>. The latter two are right: the setting belongs to the input. Written in the wrong block, it silently does nothing.
A client certificate is not a substitute for the key. The right to submit messages is given by api-key in the header; certificate verification is an additional layer on top.
The line is needed only where clients identify themselves with a certificate:
| Value | When |
|---|---|
| do not set (default) | clients submit with a key |
| path to PEM | the submitting client identifies itself with its own certificate |
The file goes in the input block, not in <transmissions-api>.
# trusted authorities for client certificates — in the INPUT block <transmissions-api-listener 1.2.3.4:8585> tls-certificate /etc/pmta/transmissions-api-certificate.pem tls-ca-file /etc/pmta/certchain.pem</transmissions-api-listener>
what people get wrong and how it ends2 mistakes▶
§ 8.1.2
our experience
2 relations
openssl s_client -connect NODE:8585 -msg </dev/null | grep -c CertificateRequest
3 articles
◇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.◇The group that grants management rightsMembership in the pmta group gives an unprivileged user the right to call the node’s commands and use submission.◇How the node selects a source and combines its settingsA connection falls under all source blocks whose addresses cover it, and they act merged — the narrow one overrides the wide one; named blocks are attached only by direct reference.