<smtp-user>
The line names files with certificate authority certificates. A client authenticates if its certificate chains up to at least one of the specified chains.
It works with authentication-method set to ca-file and requires an encrypted connection.
There can be several files — comma-separated in one line or in several lines. The manual gives exactly such an example, and it explains why: chains from different years live side by side while a transition is under way.
The check is softer than with the single-file method. Any certificate from a trusted authority will do — including one issued to someone else. It can be narrowed with a name check: tls-certificate-san-or-cn.
The value is a path or several paths:
| Form | When |
|---|---|
| one file | one authority, the usual case |
| several separated by commas | a transition between chains from different years |
| several lines | the same thing, reads better |
And almost always next to it — tls-certificate-san-or-cn: without it any certificate from this authority will do.
# chains from different years live side by side while a transition is under way <smtp-user foo> authentication-method ca-file tls-ca-file /etc/pmta/ca-certs2020.pem tls-ca-file /etc/pmta/ca-certs2021.pem, /etc/pmta/ca-certs2022.pem tls-certificate-san-or-cn pmta.messagebird.com </smtp-user>
what people get wrong and how it ends1 mistake▶
our experience
2 relations
openssl crl2pkcs7 -nocrl -certfile /etc/pmta/ca-certs.pem | openssl pkcs7 -print_certs -noout
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.