Skip to content

feat. add acme agreement and email to .env.#4

Open
nikescar wants to merge 1 commit into
chatmail:mainfrom
nikescar:main
Open

feat. add acme agreement and email to .env.#4
nikescar wants to merge 1 commit into
chatmail:mainfrom
nikescar:main

Conversation

@nikescar

Copy link
Copy Markdown

Thank you for maintaining great solution.
I found solution to acme certificate issueing error.

docker shows followin error

chatmail  | [421840.848602] bash[432]: --> Starting operation: Reconcile certificates for: chat.example.com, mta-sts.chat.example.com, www.chat.example.com
chatmail  | [421841.741899] bash[432]:     [@local] 20260713064435 [DEBUG] acmetool.storageops: Target(chat.example.com,mta-sts.chat.example.com,www.chat.example.com;https://acme-v02.api.letsencrypt.org/directory;0): best certificate satisfying is <nil>, err=Target(chat.example.com,mta-sts.chat.example.com,www.chat.example.com;https://acme-v02.api.letsencrypt.org/directory;0): no certificate satisfies this target
chatmail  | [421841.742113] bash[432]:     [@local] 20260713064435 [DEBUG] acmetool.storageops: Target(chat.example.com,mta-sts.chat.example.com,www.chat.example.com;https://acme-v02.api.letsencrypt.org/directory;0): requesting certificate
chatmail  | [421841.742209] bash[432]:     [@local] 20260713064436 [INFO] acme.interactor: interaction auto-responder couldn't give a canned response: unknown unique ID, cannot respond: "acme-agreement:https://letsencrypt.org/documents/LE-SA-v1.8-July-06-2026.pdf"
chatmail  | [421841.742321] bash[432]:     [@local] 20260713064436 [ERROR] acmetool.storageops: Target(chat.example.com,mta-sts.chat.example.com,www.chat.example.com;https://acme-v02.api.letsencrypt.org/directory;0): failed to request certificate: cannot prompt the user: currently non-interactive; try running without --batch flag
chatmail  | [421841.742404] bash[432]:     [@local] 20260713064436 [DEBUG] acmetool.storageops: done processing targets, reconciliation complete, 1 errors occurred
chatmail  | [421841.742494] bash[432]:     [@local] 20260713064436 [ERROR] acmetool.storageops: error while processing targets: the following errors occurred:
chatmail  | [421841.742572] bash[432]:     [@local] error satisfying Target(chat.example.com,mta-sts.chat.example.com,www.chat.example.com;https://acme-v02.api.letsencrypt.org/directory;0): cannot prompt the user: currently non-interactive; try running without --batch flag
chatmail  | [421841.742681] bash[432]:     [@local] 20260713064436 [ERROR] acmetool.storageops: failed to reconcile: the following errors occurred:
chatmail  | [421841.742757] bash[432]:     [@local] error satisfying Target(chat.example.com,mta-sts.chat.example.com,www.chat.example.com;https://acme-v02.api.letsencrypt.org/directory;0): cannot prompt the user: currently non-interactive; try running without --batch flag
chatmail  | [421841.742848] bash[432]:     [@local] 20260713064436 [DEBUG] acmetool.storageops: disjoint hostname mapping: "www.chat.example.com" -> Target(chat.example.com,mta-sts.chat.example.com,www.chat.example.com;https://acme-v02.api.letsencrypt.org/directory;0)
chatmail  | [421841.742936] bash[432]:     [@local] 20260713064436 [DEBUG] acmetool.storageops: disjoint hostname mapping: "chat.example.com" -> Target(chat.example.com,mta-sts.chat.example.com,www.chat.example.com;https://acme-v02.api.letsencrypt.org/directory;0)
chatmail  | [421841.743023] bash[432]:     [@local] 20260713064436 [DEBUG] acmetool.storageops: disjoint hostname mapping: "mta-sts.chat.example.com" -> Target(chat.example.com,mta-sts.chat.example.com,www.chat.example.com;https://acme-v02.api.letsencrypt.org/directory;0)
chatmail  | [421841.743113] bash[432]:     [@local] 20260713064436 [DEBUG] acmetool.storageops: could not find certificate satisfying Target(chat.example.com,mta-sts.chat.example.com,www.chat.example.com;https://acme-v02.api.letsencrypt.org/directory;0): Target(chat.example.com,mta-sts.chat.example.com,www.chat.example.com;https://acme-v02.api.letsencrypt.org/directory;0): no certificate satisfies this target
chatmail  | [421841.743300] bash[432]:     [@local] 20260713064436 [DEBUG] acmetool.storageops: could not find certificate satisfying Target(chat.example.com,mta-sts.chat.example.com,www.chat.example.com;https://acme-v02.api.letsencrypt.org/directory;0): Target(chat.example.com,mta-sts.chat.example.com,www.chat.example.com;https://acme-v02.api.letsencrypt.org/directory;0): no certificate satisfies this target
chatmail  | [421841.743402] bash[432]:     [@local] 20260713064436 [DEBUG] acmetool.storageops: could not find certificate satisfying Target(chat.example.com,mta-sts.chat.example.com,www.chat.example.com;https://acme-v02.api.letsencrypt.org/directory;0): Target(chat.example.com,mta-sts.chat.example.com,www.chat.example.com;https://acme-v02.api.letsencrypt.org/directory;0): no certificate satisfies this target
chatmail  | [421841.743522] bash[432]:     [@local] 20260713064436 [CRITICAL] acmetool: fatal: reconcile: the following errors occurred:
chatmail  | [421841.743626] bash[432]:     [@local] error satisfying Target(chat.example.com,mta-sts.chat.example.com,www.chat.example.com;https://acme-v02.api.letsencrypt.org/directory;0): cannot prompt the user: currently non-interactive; try running without --batch flag
chatmail  | [421841.744116] bash[432]:     [@local] Error: executed 0 commands
chatmail  | [421841.745969] bash[432]: --> Disconnecting from hosts...
chatmail  | [421841.764413] bash[432]: --> pyinfra error: No hosts remaining!
chatmail  | [421842.001657] bash[376]: Deploy failed
chatmail  | [FAILED] Failed to start chatmail-...m - Run container setup commands.

to fix this, add email in .env file

MAIL_DOMAIN=chat.example.com
ACME_EMAIL=admin@example.com

and run docker compose up as usual would fix the error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant