Domain signing keys can be stored in HashiCorp Vault instead of files: domain-key gets a path like {vault}:/v1/…:field, and the <vault> block describes access to the store.
The key does not sit on the node’s disk: the engine fetches it from the store over HTTP or HTTPS, keeps it in memory for a set time and does not write it to disk. A key that was not found is remembered as missing for an hour.
Keys can be changed without editing the configuration — for example, during rotation; only version 2 secrets engines are supported.
What is where:
| What | How |
|---|---|
| where the key is | the {vault}:/v1/…:field path in domain-key |
| how the engine goes to the store | the <vault> block, HTTP or HTTPS |
| flush the cache after rotation | clear secretscache |
# a domain key from the store instead of a file domain-key sel, example.com, {vault}:/v1/p25/data/domain-keys/example.com:k1
2 relations
pmta clear secretscache grep -i vault /var/log/pmta/log | tail -20
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.