Home / Acmefyer / MailStore certificate

AcmefyerAgent-based Certificate Manager

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.

01By handWhat every replacement involves

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.
02With AcmefyerWhat the agent takes care of

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.json and 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.
03SetupSet up once, then it runs on its own
  1. 01

    Add a domain

    For example archive.example.com, with Let’s Encrypt and validation via DNS-01.

  2. 02

    Install the agent

    Run the setup package on the MailStore server. The agent detects MailStore by itself.

  3. 03

    Create the deployment

    One click accepts the suggestion for MailStore Server.

  4. 04

    Done

    From now on Acmefyer renews the certificate in time and reports every result.

04FAQFrequently asked questions about the MailStore certificate

Does Let’s Encrypt work with MailStore Server?

Yes. MailStore Server takes any certificate from the Windows certificate store. Let’s Encrypt issues it for free via ACME, and Acmefyer enters it in MailStore and restarts the service.

My MailStore server is on the internal network. Does it still work?

Yes, with DNS-01. Acmefyer creates the validation record at your DNS provider. The MailStore server only needs a name under your public domain, such as archive.example.com, and neither has to be reachable from the internet nor reach the internet itself. More: Let’s Encrypt for internal servers.

What happens if MailStore does not start after the replacement?

The agent undoes everything: configuration, HTTP.sys bindings and certificate. MailStore then keeps running with the previous certificate, and Acmefyer reports the error by email, Teams, Telegram, PRTG or webhook.

Does Acmefyer have to run on the MailStore server?

No. The Acmefyer server runs on a separate Windows or Linux server. Only the small agent runs as a service on the MailStore server. It connects outbound to the Acmefyer server.

Can I use the same certificate as for Exchange?

Yes, if it contains the name of the MailStore server, for example as a further name or as a wildcard certificate. You create one deployment each for Exchange and for MailStore. After every renewal Acmefyer installs it on both.