app-email: calcom + nextcloud mappings (tls_mode=plaintext, nextcloud split-From)
calcom (Nodemailer) + nextcloud (Symfony) opportunistically STARTTLS with no cert-skip -> tls_mode=plaintext (:2526, no STARTTLS advertised). nextcloud splits From via from_domain_var (MAIL_FROM_ADDRESS + MAIL_DOMAIN). Compose files reference injected env. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -99,3 +99,18 @@ healthcheck:
|
||||
expect:
|
||||
status: 200
|
||||
body_contains: "installed"
|
||||
|
||||
# --- App-email mapping (apps → in-controller shim → hub → Resend) ---
|
||||
# Nextcloud (Symfony Mailer) has no env to skip TLS cert verification and opportunistically STARTTLS-upgrades,
|
||||
# so it can't use the self-signed :2525 listener → tls_mode=plaintext points it at :2526 (STARTTLS NOT
|
||||
# advertised → no upgrade attempted; plaintext on the single-tenant app bridge — accepted posture).
|
||||
# Nextcloud SPLITS the From into local-part + domain, so from_var=MAIL_FROM_ADDRESS (local) +
|
||||
# from_domain_var=MAIL_DOMAIN → nextcloud@felhom.eu. No security_var (SMTP_SECURE stays empty = no TLS);
|
||||
# SMTP_NAME/PASSWORD unset (no auth). The official image reads these via getenv() on every boot.
|
||||
smtp_mapping:
|
||||
tls_mode: plaintext
|
||||
host_var: SMTP_HOST
|
||||
port_var: SMTP_PORT
|
||||
from_var: MAIL_FROM_ADDRESS
|
||||
from_domain_var: MAIL_DOMAIN
|
||||
from_local: nextcloud
|
||||
|
||||
@@ -33,6 +33,15 @@ services:
|
||||
- OVERWRITEPROTOCOL=https
|
||||
- OVERWRITEHOST=${SUBDOMAIN}.${DOMAIN}
|
||||
- REDIS_HOST=nextcloud-redis
|
||||
# App-email (managed relay). Injected by the controller only when app-email is on (global + per-app);
|
||||
# empty SMTP_HOST keeps Nextcloud mail disabled. Nextcloud uses the plaintext :2526 listener
|
||||
# (tls_mode=plaintext, SMTP_SECURE empty = no TLS) — it can't skip the self-signed STARTTLS cert.
|
||||
# From is split: MAIL_FROM_ADDRESS=nextcloud + MAIL_DOMAIN=felhom.eu. See .felhom.yml smtp_mapping.
|
||||
- SMTP_HOST=${SMTP_HOST:-}
|
||||
- SMTP_PORT=${SMTP_PORT:-25}
|
||||
- SMTP_SECURE=${SMTP_SECURE:-}
|
||||
- MAIL_FROM_ADDRESS=${MAIL_FROM_ADDRESS:-}
|
||||
- MAIL_DOMAIN=${MAIL_DOMAIN:-}
|
||||
volumes:
|
||||
- nextcloud_html:/var/www/html
|
||||
- ${HDD_PATH}/appdata/nextcloud:/var/www/html/data
|
||||
|
||||
Reference in New Issue
Block a user