<smtp-user>
Chain verification answers the question “did our own authority issue the certificate.” This line answers the second, much more important one: is it the right client.
The value is a fully qualified domain name without wildcards. It is matched against the SAN or CN field of the client certificate.
A wildcard is allowed on the certificate side. The manual gives an example: a certificate with SAN *.messagebird.com will match the configured name pmta.messagebird.com. That is, the asterisk is set by the client, not by us, and it covers only the first label.
It works with authentication-method set to ca-file, on top of tls-ca-file.
The value is a fully qualified domain name. What it gives and what it does not:
| Client certificate | Configured name | Passes |
|---|---|---|
| SAN pmta.example.com | pmta.example.com | yes |
| SAN *.example.com | pmta.example.com | yes — the wildcard is set by the client |
| SAN pmta.other.com | pmta.example.com | no |
| a wildcard in our line | — | not allowed: the name is set in full |
# the chain answers “our authority,” this line — “the right client” <smtp-user foo> authentication-method ca-file tls-ca-file /etc/pmta/ca-certs.pem tls-certificate-san-or-cn pmta.messagebird.com</smtp-user>
what people get wrong and how it ends1 mistake▶
§ 3.3.8.5
1 relation
openssl x509 -in client.pem -noout -text | grep -A1 "Subject Alternative Name"
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.