<smtp-user>
The line names that very certificate file the client must present during authentication. Not “a certificate from such-and-such authority,” but exactly this one.
It works only with authentication-method set to certificate. And it requires an encrypted connection — the certificate is presented during the TLS negotiation.
The certificate can be issued with the tool from the distribution — pmtakeytool — or with ordinary OpenSSL.
The difference from the trusted authority method. Here the check is literal: one file will do. There, any certificate that chains up; more convenient when there are many logins, and weaker when there is one login.
The value is a path to a file. What is decided along with it:
| What | Note |
|---|---|
| who issues it | pmtakeytool from the distribution or OpenSSL |
| validity period | submission will stop on the expiry date |
| where the client’s private key lives | with the submitting side, not with us |
| connection encryption | mandatory, otherwise the method does not work |
# the login is confirmed by a specific file, not by a password <smtp-user foo> authentication-method certificate tls-certificate /etc/pmta/bar-cert.pem</smtp-user>
what people get wrong and how it ends2 mistakes▶
our experience
§ 3.3.8.3
1 relation
openssl x509 -in /etc/pmta/bar-cert.pem -noout -subject -enddate
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.