Feelcouch ProjectsHandbook · v1.47.0

Operations

Optional email delivery

Email delivery is optional. Browser authentication, offline recovery codes and manual invitation links work without a mail provider. This release adds only explicitly confirmed facilitator invitation emails; login email addresses are not treated as verified delivery destinations or as permission to send recovery emails.

Configure a sender

Resend is a convenient starter through generic SMTP, without a vendor SDK. Its published free plan currently advertises 3,000 emails/month and 100 emails/day; check pricing before relying on it. This is not a promise of unlimited, permanently free or universally reachable service. Any authenticated SMTP provider supporting TLS or required STARTTLS can replace it.

  1. Create the provider account yourself and add feelcouch.tech as a sending domain.
  2. Add the exact DNS records supplied by the provider and wait for domain verification. Sending from [email protected] does not require an existing inbound mailbox; it will not receive replies unless you separately provision one.
  3. Create a sending API key in Resend. Use its key as the SMTP password; never put it in chat, Git, screenshots or a command argument.
  4. Configure the actual application's runtime environment file, confirmed from the current hosting project. The current private feelcouch-hub/fcctl deployment is authoritative. Historic /opt/feelcouch-dev and /opt/identichnost instructions must not be assumed to identify the live environment. After sending-domain verification and identification of the actual private runtime environment file, the integrated setup helper can be used without putting the key into shell history:
python3 scripts/configure-smtp.py --env-file <ACTUAL_APP_RUNTIME_ENV> --from-address [email protected]

It prompts for the provider key with hidden input. The environment path is a placeholder until the hosting project is inspected; do not use a historical path automatically. This helper is shipped by the integrated release, not by the SMTP adapter in isolation.

  1. Ensure the private hosting runtime forwards every SMTP setting into the application container, then recreate the application through its normal release path. A repository .env or a new image alone does not activate mail.

The repository's direct Compose configurations forward these variables. The private hosting Compose configuration must do so independently:

SMTP_ENABLED=true
SMTP_HOST=smtp.resend.com
SMTP_PORT=465
SMTP_SECURITY=tls
SMTP_USER=resend
SMTP_PASSWORD=<provider sending key, set privately>
[email protected]
SMTP_FROM_NAME=Feelcouch

Use Resend's SMTP documentation for current provider values. SMTP_SECURITY=starttls supports providers requiring STARTTLS, usually on port 587. For a provider that documents it, port 2587 with required STARTTLS is another option when host egress policy blocks port 465; verify connectivity on the actual production host before activation. Certificate verification and TLS 1.2 minimum remain mandatory; plaintext delivery and self-signed production certificates are not supported. Unset SMTP_ENABLED or false disables delivery. Enabled but incomplete/invalid settings fail closed and preserve manual invitations.

Check configuration without sending a message

npm run mail:doctor validates only settings and prints fixed status codes, never credentials or recipient information. MAIL_CONFIGURED_NOT_VERIFIED means configuration is present, not that provider authentication or domain verification succeeded. npm run mail:doctor -- --verify explicitly checks SMTP connection/authentication without sending a message. It does not prove sender-domain verification or inbox delivery.

The standalone production runtime includes mail-doctor.js: run node /app/mail-doctor.js in the actual application container, or add --verify for connection/authentication checks without email delivery. It needs neither tsx nor the source checkout. In a source checkout, use the npm commands above with the same private environment. Do not copy the key into a public shell command. The normal release must preserve the environment file's private ownership and mode. Do not print docker compose config, process environments or resolved container settings when they contain the password.

To disable delivery, set SMTP_ENABLED=false and recreate the application through the normal host procedure. Do not remove browser access or recovery codes.

Send an invitation

In the facilitator cabinet, open People and create a personal invitation. Manual browser and Telegram links appear first. In the separate email form, enter one prospective participant's address, verify it and explicitly confirm the recipient before pressing Send invitation. A successful response says the provider accepted the email; ask the participant to check inbox/spam. For missing settings, quota limits or provider failures, copy the existing link and send it through another agreed channel. The invitation is not consumed by SMTP delivery and remains single-use for registration.

The server rechecks manager rights and invite scope/status on every action. Budgets are 10/hour per manager, 30/day per group, 3/hour per recipient hash and 90/day per application instance, with the provider's own limits also applying. These small in-memory budgets protect a single-instance deployment, not an account-wide distributed quota. There is no background SMTP retry, bulk sending or automatic newsletter delivery in this release.

Provider errors are reduced to fixed reason codes. Audit rows retain only the invitation reference and acceptance/failure code; they do not retain the address, password, invitation token or body. An accepted message can still bounce or land in spam; SMTP acceptance is not delivery telemetry.

Account access requirement

Invitation email delivery requires the authenticated group manager to have an attached login email in /account/access. This is checked on the server before contacting SMTP, including direct or stale form submissions. Without it, People shows an attach-email link and manual invitation links remain available. This account requirement does not change password setup, password changes, email attachment, offline recovery, or delivery for other managers who have attached email. The provider-verified sender address remains SMTP_FROM_ADDRESS; the account email is never used as the message sender.