How do you automate certificate renewal on Postfix and Dovecot?
Mail administrators can automate renewal for Postfix and Dovecot by having an ACME client or a scheduled job obtain a new certificate before the old one expires, write the new files to the paths the daemons read, and then tell each daemon to reload so it serves the new certificate. The sources supplied for this page do not document Postfix or Dovecot reload commands, configuration keys or the exact file layout each daemon expects, so confirm those in the Postfix and Dovecot documentation for the versions you run before you write the script. The renewal job should also check that the new certificate chain is complete and that the daemons present it on both SMTP and IMAP listeners.
The Baseline Requirements version 2.3.2 for publicly trusted TLS server certificates set a maximum subscriber certificate validity of 200 days from 15 March 2026, 100 days from 15 March 2027 and 47 days from 15 March 2029. Those limits change what mail servers have to do: a certificate that is renewed once a year by hand will be out of policy, and every mail server using a public certificate will need renewal that runs without a person in the loop. Owners of mail hosts, and the teams that run the ACME or certificate tooling, must act before each date, and the 47-day limit adds the stricter reuse of domain validation data, which the same document sets at 10 days from 15 March 2029.
Before the 100-day date, mail administrators should inventory every SMTP and IMAP endpoint that uses a public certificate, record which daemon serves each one and how it reloads, and test one renewal end to end on a staging host. Plan for the 47-day schedule now, because the renewal interval shrinks with each step. Confirm with your certificate authority which lifetime and reuse periods apply to the certificates you order.
What the lifetime schedule changes for a mail server
This table sets each dated limit in the CA/Browser Forum Baseline Requirements against what it means for a Postfix and Dovecot mail server. Read each row as one step, from the 200-day limit in March 2026 to the 47-day limit in March 2029. The main takeaway is that each step multiplies the renewals a mail server needs each year, so manual renewal stops being workable well before 2029.
| Date from | Maximum certificate validity and validation reuse | What it means for renewals on this platform |
|---|---|---|
| 15 March 2026 | 200-day maximum validity; 200-day domain and IP validation reuse; 398-day identity reuse | Roughly 1.8 certificate issues a year per hostname. Confirm each mail hostname's certificate and the Postfix and Dovecot reload steps before the next renewal. |
| 15 March 2027 | 100-day maximum validity; 100-day domain and IP validation reuse | Roughly 3.7 issues a year per hostname. Renewal every few months becomes the normal cycle, so schedule reloads for SMTP and IMAP and check each one picks up the new file. |
| 15 March 2029 | 47-day maximum validity; 10-day domain and IP validation reuse | Roughly 7.8 issues a year per hostname. Manual renewal is unlikely to keep pace, so plan automated issuance and renewal for every mail hostname and each daemon's reload. |
| Renewals per year (illustrative) | Derived from the dated maximums: 365 divided by the validity period | Illustrative only: a mail server with 4 hostnames would need about 7 renewals a year at 200 days and about 31 at 47 days. Count your own hostnames and services. |
| Who renews the certificate | Each step applies to publicly trusted subscriber certificates | Confirm with your certificate authority which certificates fall under these limits and which private certificates follow your own policy. |
| Work done by hand | Copying files, editing configs and reloading Postfix and Dovecot per renewal | Each manual cycle touches both daemons and risks a missed reload. Ask your team to list every manual step and the person who performs it. |
| Validation reuse | Reuse periods limit how long domain validation can be relied on | Validation must be repeated more often as the reuse period falls. Confirm your ACME or issuance tooling re-validates the mail hostnames within the reuse window. |
Which automation options apply to Postfix and Dovecot
An external ACME client runs outside the mail daemons, requests a new certificate from a certificate authority, and writes the certificate and private key to files on the mail server. Postfix and Dovecot then read those files, so the client's job ends at the filesystem and a separate step has to make the daemons load the new material. The sources supplied for this topic do not describe how Postfix or Dovecot handle certificate files, so confirm the exact file paths and reload behavior in each daemon's own documentation before you automate.
- Client choice: Pick a client that supports the certificate authority and validation method you use, and that can run on a schedule on the mail host.
- File targets: Set the client to write the full chain and key to fixed paths that the mail daemon config already references.
- Permissions: Restrict the key file to the account that runs the daemon, because the client writes it under a service identity.
- Scheduling: Run renewal well before expiry, and check the client's own renewal window in its documentation.
- Reload hook: Attach a post-renewal hook that tells the daemon to reload, covered in the next tab.
Before relying on this path, confirm in a test environment that a renewed file is picked up and that the handshake presents the new certificate.
A reload step is the action that makes a running daemon read a changed certificate file. Without it, the mail service keeps presenting the certificate it loaded at startup, even though a valid replacement sits on disk. The sources supplied for this topic do not name a reload command or a signal for Postfix or Dovecot, so take the exact command from the vendor documentation for your version rather than from this page.
- Hook placement: Run the reload from the client's post-renewal hook so it fires only after a successful file write.
- Service scope: Reload only the mail services that use the certificate, so unrelated services are not disturbed.
- Failure handling: Make the hook exit with an error when the reload fails, so the client or your monitoring reports it.
- Ordering: Confirm that the reload happens after the key and chain are both in place, so the daemon does not load a partial pair.
- Verification: Check the served certificate after reload, not only the file on disk.
Record which command you use and the version it applies to, since reload behavior can change between releases.
A built-in option would be a certificate management feature inside Postfix or Dovecot that requests and renews certificates without an outside client. The sources supplied for this topic do not name any such feature for either daemon, so this page does not claim one exists. Treat any built-in renewal you find in a guide as something to verify against the release notes and configuration reference for your exact version.
- No named feature: The supplied sources do not describe a built-in ACME or renewal function in Postfix or Dovecot.
- Version check: If a built-in option is documented for your release, read its limits in that release's documentation.
- Scope of trust: Any built-in option would still have to be checked against the certificate authorities your mail domains use.
- Fallback: Without a verified built-in option, the external client and reload path is the pattern to plan around.
- Documentation source: Look in the Postfix and Dovecot documentation for the release you run, not in community posts.
If you find a documented built-in option, confirm it with your vendor or the project before changing production configuration.
How Postfix and Dovecot load certificates and pick up a new one
Renewing a certificate on a mail server is only half the job. Postfix and Dovecot each read their certificate and private key from files on disk, so the new certificate has no effect until the daemon reads those files again. Mail administrators need to know where each daemon takes its certificate and key from, and how a reload or restart makes it use the replacement. Confirm the exact configuration keys, file locations and reload commands for your installed versions in the Postfix and Dovecot documentation, because the sources supplied for this page do not name them.
Because the daemons read files, an automated renewal has two parts: writing the new certificate and key to the paths the daemon already uses, then telling the daemon to reload. Plan for the file permissions on the private key, so the service account can read the new file after renewal and the key stays protected from other users. Also plan for the chain file. A certificate installed without its intermediate certificates can fail to validate for some clients, so confirm which file holds the full chain in your configuration.
Check the result after each renewal instead of assuming the reload worked. Connect to the SMTP and IMAP ports with a TLS client, read the served certificate, and compare its serial number and expiry date with the file you just installed. A daemon that failed to reload keeps serving the old certificate until it expires, and that failure can go unnoticed for weeks. Record the checks in your renewal runbook so the on-call engineer can repeat them without the original author.
Set up renewal on Postfix and Dovecot, in order
This sequence sets up automated renewal for the certificate that Postfix and Dovecot both read, so each daemon picks up a renewed file without a manual swap. Work through the steps in order, because the validation method and the file layout determine what the reload step has to do. The result is a renewal path you can test before the shorter certificate lifetimes arrive.
Confirm prerequisites and inventory the certificate
Identify every hostname the mail server presents for SMTP and IMAP, and record which Postfix and Dovecot configuration files point to the certificate and key. Confirm that the server can reach the certificate authority and that you have an account or client that can issue and renew. Check the current certificate's expiry and the lifetime your certificate authority applies. The step is done when you have a written list of hostnames, file paths and the daemon versions you run, so you can confirm compatibility with each daemon's documentation.
Choose and configure the validation method
Decide how the certificate authority will validate control of each hostname, and set up the mail server or its DNS to meet that method. Publicly trusted certificates require domain control validation, and the method you pick must still work when the validity period shortens. Test the validation from the mail host before you request a certificate. The step is complete when a test validation succeeds for every hostname in your inventory.
Issue the certificate and key
Request the certificate for all the mail hostnames from the inventory, using your chosen certificate authority or an ACME client. Generate the private key on the mail host, or keep it where only the mail administrator can read it, and store the file with restrictive permissions. Save the full chain the authority returns. The step is complete when you hold the certificate, its key and the chain, and you have checked that the certificate names match the hostnames.
Place the files where each daemon reads them
Copy the certificate, chain and key to the paths your Postfix and Dovecot configuration already reference, or update those settings to point at a stable path. Keep ownership and permissions so that each daemon can read the key but other users cannot. Use a fixed path that the renewal job overwrites, so you do not edit configuration on every renewal. The step is complete when the files are in place and a file listing shows the expected owner and mode.
Reload Postfix and Dovecot after the files change
Reload Postfix and Dovecot so that each daemon reads the new certificate. Use the reload operation documented for each daemon, and check the documentation for the exact command on your version rather than relying on a restart. Your renewal job should run this reload only after the new files are in place. The step is complete when each daemon reports the new certificate on a TLS handshake to its listening port.
Verify the served certificate on SMTP and IMAP
Connect to the submission, SMTP and IMAPS ports from outside the mail host and inspect the certificate presented, including its serial number, expiry and names. Confirm that both daemons show the same renewed certificate, and that the chain verifies. Record the check so the next renewal can be compared against it. The step is complete when the served certificate matches the issued one on every port you expose.
Schedule renewal and monitor expiry
Schedule the renewal job so it runs well before expiry, and make it run the file placement and reload steps automatically. Add monitoring that alerts you when the served certificate is close to expiry or when the renewal job fails. Review the job's logs after each run and after each daemon upgrade. The step is complete when a test run renews the certificate, reloads both daemons and produces an alert path you have confirmed works.
What has to be in place before renewal is automated
Automated renewal for Postfix and Dovecot only works when the mail server version, the validation path, DNS, key file permissions and key storage are all settled first. Each item below is a separate check to complete before you turn on any renewal job.
Confirm Postfix and Dovecot versions
Check the exact Postfix and Dovecot versions you run, and confirm that each one can reload its TLS certificate and key files without a full restart. Your renewal job depends on that reload behavior, so record the versions in your change plan. Read each project's documentation for the version you run, because TLS file handling and reload behavior can differ between releases. Test the reload on a staging host before production.
Allow domain validation over the network
Your ACME client must reach the certificate authority, and the validation method you choose must be reachable from the internet or from the internal network that the authority uses. If you use HTTP validation, the web path must be reachable on the host that validates. If you use DNS validation, the DNS path must be reachable instead. Confirm both the outbound path from the mail host and the inbound validation path before you rely on automation.
Grant DNS access for validation records
If you validate through DNS, the automation needs an account or API token that can create and remove the validation records for your mail domains. Limit that credential to only the zones it must change. Confirm that the record change takes effect before the authority checks it, and test removal as well as creation so stale records do not accumulate.
Set file permissions on the private key
Postfix and Dovecot must read the private key, but other local users should not. Set the key owner and group to the service account each daemon runs as, and restrict the mode so that only that account can read it. Check the permissions after each renewal, because a renewal tool that rewrites the file can change its owner or mode. Keep the certificate and key paths the same across renewals so the daemons keep reading the right files.
Decide where keys are stored
Decide whether the private key lives on local disk, in a secrets store, or on a hardware module, and document who can read it and how it is backed up. The storage choice affects how the renewal job writes the new key and how Postfix and Dovecot are pointed at it. Include the key location in your backup and recovery plan, and confirm that a restored key still has the permissions the daemons need.
- Maximum validity from March 2026
- 200 days
How a renewal moves from the client to a reloaded mail daemon
The flow starts with the renewal client, which requests a new certificate from the certificate authority. The authority checks domain control through domain validation before it issues the certificate. The client then writes the new certificate and key files to the paths that Postfix and Dovecot read. Each daemon must be reloaded so it picks up the new file. Check that the reload succeeded and that both services present the new certificate after renewal.
Renewal path from the client through the certificate authority to reloaded Postfix and Dovecot.
How to confirm mail certificates keep renewing
Renewal is only finished when you can show that the new certificate is in place and that Postfix and Dovecot are serving it. Start by monitoring expiry on every certificate those daemons present, on both the SMTP and IMAP listeners, and alert well before the current certificate expires. The shorter lifetimes in the CA/Browser Forum Baseline Requirements version 2.3.2 make this more important: from 15 March 2026 the maximum validity of a publicly trusted subscriber certificate is 200 days, and the limit falls to 100 days from 15 March 2027 and to 47 days from 15 March 2029. An expiry check that runs once a month will miss a failed renewal that surfaces only after several cycles.
Next, review the logs from each renewal run. Your ACME client or renewal script should record whether issuance succeeded, where the new files were written, and whether the reload command returned success. Confirm the reload actually happened by checking the service's own log output and by connecting to port 25 with a TLS-aware client, or to the IMAP port, and reading the certificate's serial number and expiry date. The sources listed on this page do not name specific Postfix or Dovecot log messages for reloads, so check the exact wording in your version's documentation and your own logs before writing alerts against it.
Set an alert for any failed renewal, failed reload, or certificate that is still near expiry after a renewal window has passed. Keep a dated record of each renewal: the certificate's serial number and validity dates, the time it was deployed, the reload result, and the alert history. Auditors and customers who ask how your mail service handles certificates will expect this evidence, and retaining it lets you answer without reconstructing events from memory. Confirm your retention period with your compliance team, since the sources on this page do not set one.
Questions mail administrators ask about automated certificate renewal
Do Postfix and Dovecot support ACME for automatic certificate issuance?
Postfix and Dovecot do not issue or renew certificates themselves. They read certificate and key files from disk, so automation depends on an ACME client that obtains the certificate and writes the files to the paths your mail daemons use. The sources listed on this page do not describe native ACME support in either daemon. Confirm the current behavior in the Postfix and Dovecot documentation for the versions you run, since the answer depends on those versions. Plan to separate issuance (the ACME client) from reloading (a hook that tells each daemon to read the new files).
Which ACME client should we use for mail server certificates?
Choose the client based on your existing tooling, the operating system your mail hosts run, and whether you need a deploy hook that reloads services after renewal. The sources listed on this page do not rank or recommend specific clients, so compare the candidates against your own environment and read each client's documentation for hook and file-permission support. Whatever you pick, confirm that it can write the certificate chain and private key in a format and location that Postfix and Dovecot can read, and that the renewal job runs as a user with the correct file permissions.
How often will our mail certificates need to renew under the 47-day limit?
The CA/Browser Forum Baseline Requirements version 2.3.2 set a schedule for publicly trusted TLS server certificates. The maximum validity period is 200 days from 15 March 2026, drops to 100 days from 15 March 2027, and reaches 47 days from 15 March 2029. A certificate with a 47-day lifetime needs renewal far more often than one with a year-long lifetime, so renewal must run on a schedule, not by hand. Renewal timing is set by your ACME client and certificate authority, so check the expiry date on each certificate and confirm the renewal window with your chosen tooling. Note that these limits apply to publicly trusted certificates, not to every certificate in your estate.
What happens if a certificate renewal fails on a mail server?
If renewal fails, the mail daemons keep serving the existing certificate until it expires, so the risk is an outage at expiry rather than an immediate failure. Plan for the failure path before it happens:
- Alert on renewal job failures and on certificate expiry dates, not only on the renewal result.
- Check that a failed renewal does not overwrite the working certificate file with a broken one.
- Confirm that the reload step runs only after a successful issuance, so a bad file is never loaded.
- Keep a manual re-issuance procedure documented and tested.
The sources listed on this page do not describe how Postfix or Dovecot respond to a bad certificate file, so test that behavior in a staging environment before relying on it.
Do wildcard and internal hostnames work with automated renewal?
Whether a wildcard or internal name can be renewed automatically depends on the certificate authority and the validation method it supports, not on Postfix or Dovecot. Public certificate authorities and ACME clients document which names they can issue for and how they validate control of them, so check those documents before you plan around a wildcard name. Internal names that are not publicly resolvable generally fall outside publicly trusted issuance, so they need a private certificate authority with its own renewal path. The sources listed on this page do not say which names a given authority accepts, so confirm that before rollout.
When should we bring in outside help for mail certificate automation?
Consider outside help when the mail estate spans many hosts, when renewal must be coordinated across Postfix, Dovecot and other services, or when your team lacks time to build and test reload hooks. DeployOpen plans, implements and documents self-hosted platforms inside your own infrastructure, and can run fixed-scope work that covers the renewal job, the reload step, failure alerting and the test plan, with scope and deliverables agreed in writing before work starts. DeployOpen does not publish a price list, and a quote follows from that written scope. Ask any provider for a written scope that names the daemons, versions, hosts and the failure procedure it will deliver.
What drives the effort and cost of automating mail certificate renewal?
The main cost drivers are the number of mail hosts, the number of distinct certificates and names, how many services need a reload after renewal, and how much testing the change needs in your environment. Setup is largely one-time: building the renewal job, the reload hooks and the alerting. Ongoing cost is monitoring, periodic testing and updates as versions change. The sources listed on this page do not give a price or a duration for this work, so ask any provider for a quote that breaks the effort into those components and states what is one-time and what recurs.
How DeployOpen helps teams automate mail server certificate renewal
DeployOpen starts by mapping which Postfix and Dovecot listeners use which certificate files, and which reload step each daemon needs when the file changes. The work is then built, tested and handed over as a fixed-scope deliverable in your own infrastructure, so your mail administrators can run the renewal themselves.
How we scope
- We inventory every SMTP and IMAP listener, its certificate and key paths, and the hostnames it serves.
- We record the current reload behavior of each daemon and which services depend on the mail server.
- The written scope lists the platforms, hostnames and deliverables, agreed before any work starts.
How we build
- We build the renewal workflow for your certificate source, placing renewed files where Postfix and Dovecot read them.
- We configure the reload step for each daemon so it picks up the new file without a full service restart.
- We test renewal in a staging mail environment, including a check that clients receive the new certificate.
How we hand over
- You receive documentation of the renewal workflow, file locations, reload commands and rollback steps.
- We walk your mail administrators through a live renewal so they can run and verify the process themselves.
- Each deliverable is listed in the written scope, so you can confirm what was handed over at close.
How we support
- Ongoing support, upgrades and continuous testing are available as a retainer for mail platforms that change over time.
- Retainers can cover Postfix and Dovecot version upgrades and retesting after certificate source changes.
- Confirm current daemon reload behavior against your installed versions in the vendor documentation before scoping.

