Configure prod SMTP relay for magic-link delivery on netcup #40
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Replace the placeholder SMTP configuration on the netcup deployment (
/srv/librenotes/.envcurrently hasLIBRENOTES_SMTP_HOST=localhost, port1025, no creds) with a working transactional SMTP relay so magic-link login works end-to-end athttps://ln.cloud.librete.ch/.Context
internal/auth.SMTPMailerships with the binary; configuration is purely env-var driven.Options
Tasks
librete.chif usingno-reply@librete.ch, or a dedicated subdomain likemail.librete.ch)/srv/librenotes/.env:LIBRENOTES_SMTP_HOST=...LIBRENOTES_SMTP_PORT=587LIBRENOTES_SMTP_USER=...LIBRENOTES_SMTP_PASS=...LIBRENOTES_SMTP_FROM=no-reply@<envelope-domain>docker compose ... up -d librenotesto pick up the new env (recreate, not just restart)https://ln.cloud.librete.ch/, click the link from a real inboxAcceptance Criteria
mail-tester.comscore ≥ 9/10)LIBRENOTES_SMTP_FROM/srv/librenotes/.env(chmod 600), never committedDependencies