Home / Acmefyer / MailStore certificate
Renew the MailStore certificate automatically, with Let’s Encrypt.
MailStore Server delivers Web Access, the Outlook add-in and IMAP access over TLS. When the certificate expires, browsers and Outlook warn on every workstation. Acmefyer obtains the certificate via ACME, for example for free from Let’s Encrypt, and an agent on the MailStore server enters it and restarts the service.
How to replace the SSL certificate in MailStore Server by hand.
The new certificate goes into the computer’s certificate store as a PFX file, for example with PowerShell:
Import-PfxCertificate -FilePath C:\certs\archiv.pfx -CertStoreLocation Cert:\LocalMachine\My -Password (Read-Host -AsSecureString)
It is then selected in the MailStore Server Service Configuration under IP Addresses and Ports for each service, and the service restarts. The old certificate stays in the store until someone removes it.
- Several services
- MailStore Client, Web Access with the Outlook add-in, IMAP and the Administration API each have a port of their own. The certificate is selected for each one separately.
- Restart
- The change takes effect only after the service restarts. If something is wrong, the archive is down.
- How often
- Since March 2026 public certificates are valid for at most 200 days, from 2029 for only 47 days. The replacement is then due roughly every month.
The agent enters the certificate and checks that MailStore starts.
The Acmefyer server obtains the certificate from Let’s Encrypt or another ACME certificate authority and renews it about 30 days before expiry. The Acmefyer agent runs as a service on the MailStore server. It picks up the new certificate, imports it into the Windows certificate store, enters it in MailStore Server’s configuration and the HTTP.sys bindings and restarts the service.
If MailStore does not start with the new certificate, the agent undoes everything and MailStore keeps running with the previous one. If MailStore starts, the agent removes the previous certificate from the store.
- MailStore Server
- Import into the Windows certificate store, entry in
MailStoreServer.jsonand the HTTP.sys bindings, restart of the service. - Rollback
- If the service does not start, the agent restores configuration, bindings and certificate. Acmefyer reports the error.
- Without PowerShell
- The agent does everything itself through the Windows interfaces. No remote access, WinRM or administrator passwords in a central place are needed.
- Detection
- The agent finds MailStore Server with its ports and the certificate currently in place and suggests the matching deployment.
- Validation
- With DNS-01 the MailStore server does not have to be reachable from the internet for the domain validation.
- 01
Add a domain
For example archive.example.com, with Let’s Encrypt and validation via DNS-01.
- 02
Install the agent
Run the setup package on the MailStore server. The agent detects MailStore by itself.
- 03
Create the deployment
One click accepts the suggestion for MailStore Server.
- 04
Done
From now on Acmefyer renews the certificate in time and reports every result.
