Obtaining account ID from xmox.nl email server

I have set up instances of https://xmox.nl both personally and for a friend, and need to obtain the let's encrypt account ID it is using for CAA records, but am not sure how to do so. How should I attempt to get its account ID? I'd prefer to avoid patching the email server software if at all possible. It generated the file data/acme/letsencrypt.key with a line "Note: PEM PKCS8 ECDSA private key generated for ACME provider letsencrypt by mox"`, if that helps at all.

The ACME client used should store it somewhere and be able to show it to you.

I do not recognise the data/acme/letsencrypt.key path (maybe others will). What ACME client are you using? The private key itself is of no use.

Edit:
Looks like it has its own ACME client built in and looking at mox/autotls/autotls.go at main · mjl-/mox · GitHub I don't immediately see that this client actually stores the account URI anywhere.

If you have account key you can try to register it again with onlyReturnExisting parameter to get accounturi that using it.

Try running mox config dnsrecords <domain> and it should suggest CAA records.

Good catch! That main.go of more than 4000 lines (:see_no_evil_monkey:) indeed contains account URI stuff: