1
0
mirror of git://f0xx.org/ac/ac-deploy synced 2026-07-29 05:19:12 +03:00

cluster0: Gmail mail relay (msmtp + PHP SMTP), lab cron

Mirror alpine-be msmtp for CLI; compose uses Gmail SMTP for php-fpm.
Safe secrets.lab.env parser; deploy-mailrelay, install-lab-cron, verify-mail-lab.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Anton Afanasyeu
2026-06-23 18:24:10 +02:00
parent c554dc761d
commit 3d66edb405
9 changed files with 142 additions and 19 deletions

View File

@@ -18,13 +18,11 @@ AUTH_ENCRYPTION_KEY=lab-cluster-dev-32-char-min-secret!!
# RSSH_BASTION_HOST=cast01.intra.raptor.org
# RSSH_BASTION_PORT=22
# SMTP (when lab mail is configured — prefer email recovery)
# Fill on NFS /shared/cluster/secrets.lab.env (mode 600); re-run compose-lab-backend.sh
MAIL_TRANSPORT=smtp
MAIL_FROM=Android Cast Lab <noreply@acl0.f0xx.org>
MAIL_REPLY_TO=info@apps.f0xx.org
# SMTP_HOST=
# SMTP_PORT=587
# SMTP_ENCRYPTION=tls
# SMTP_USER=
# SMTP_PASS=
# Outbound mail (msmtp → Gmail — copy MSMTP_APP_PASSWORD from alpine-be /etc/androidcast/msmtp.secret)
# Use quotes if the app password contains spaces.
MAIL_TRANSPORT=sendmail
MAIL_FROM="Android Cast Lab <bestcastr@gmail.com>"
MAIL_REPLY_TO=bestcastr@gmail.com
MSMTP_FROM=bestcastr@gmail.com
MSMTP_USER=bestcastr@gmail.com
# MSMTP_APP_PASSWORD="xxxx xxxx xxxx xxxx"