Guide in https://docs.mailcow.email/post_installation/reverse-proxy/r_p-caddy2/?h=caddy is not in line with https://docs.mailcow.email/getstarted/prerequisite-dns/
It will work if your MAILCOW_HOSTNAME is example.org but not if your MAILCOW_HOSTNAME is as in DNS setup doc mail.example.org
in that case the Caddyfile section below shall be corrected from
MAILCOW_HOSTNAME autodiscover.MAILCOW_HOSTNAME autoconfig.MAILCOW_HOSTNAME {
.....
}
to:
MAILCOW_HOSTNAME autodiscover.example.org autoconfig.example.org {
.....
}
otherwise Active sync fill not work