Poste.io Mailserver

What issues? You’ll need to elaborate.

A 500 error is a problem with the upstream app, not Caddy.

Caddy handles all /.well-known/acme-challenge requests itself because it is itself an ACME client.

You didn’t post your logs for Caddy. Please do so, it’s necessary to understand what’s going on.