fix: use internal Docker SMTP hostname and fix noreply@rmail.online creds
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
d0fbbd2ee5
commit
9ecffff692
|
|
@ -39,7 +39,7 @@ services:
|
||||||
- IMAP_HOST=mail.rmail.online
|
- IMAP_HOST=mail.rmail.online
|
||||||
- IMAP_PORT=993
|
- IMAP_PORT=993
|
||||||
- IMAP_TLS_REJECT_UNAUTHORIZED=false
|
- IMAP_TLS_REJECT_UNAUTHORIZED=false
|
||||||
- SMTP_HOST=${SMTP_HOST:-mail.rmail.online}
|
- SMTP_HOST=${SMTP_HOST:-mailcowdockerized-postfix-mailcow-1}
|
||||||
- SMTP_PORT=${SMTP_PORT:-587}
|
- SMTP_PORT=${SMTP_PORT:-587}
|
||||||
- SMTP_USER=${SMTP_USER:-noreply@rmail.online}
|
- SMTP_USER=${SMTP_USER:-noreply@rmail.online}
|
||||||
- SMTP_PASS=${SMTP_PASS}
|
- SMTP_PASS=${SMTP_PASS}
|
||||||
|
|
@ -213,7 +213,7 @@ services:
|
||||||
- PORT=3000
|
- PORT=3000
|
||||||
- JWT_SECRET=${JWT_SECRET}
|
- JWT_SECRET=${JWT_SECRET}
|
||||||
- DATABASE_URL=postgres://encryptid:${ENCRYPTID_DB_PASSWORD}@encryptid-db:5432/encryptid
|
- DATABASE_URL=postgres://encryptid:${ENCRYPTID_DB_PASSWORD}@encryptid-db:5432/encryptid
|
||||||
- SMTP_HOST=${SMTP_HOST:-mail.rmail.online}
|
- SMTP_HOST=${SMTP_HOST:-mailcowdockerized-postfix-mailcow-1}
|
||||||
- SMTP_PORT=${SMTP_PORT:-587}
|
- SMTP_PORT=${SMTP_PORT:-587}
|
||||||
- SMTP_USER=${SMTP_USER:-noreply@rspace.online}
|
- SMTP_USER=${SMTP_USER:-noreply@rspace.online}
|
||||||
- SMTP_PASS=${SMTP_PASS}
|
- SMTP_PASS=${SMTP_PASS}
|
||||||
|
|
|
||||||
|
|
@ -84,7 +84,7 @@ checklistApiRoutes.post("/send", async (c) => {
|
||||||
|
|
||||||
const nodemailer = await import("nodemailer");
|
const nodemailer = await import("nodemailer");
|
||||||
const transport = nodemailer.createTransport({
|
const transport = nodemailer.createTransport({
|
||||||
host: process.env.SMTP_HOST || "mail.rmail.online",
|
host: process.env.SMTP_HOST || "mailcowdockerized-postfix-mailcow-1",
|
||||||
port: Number(process.env.SMTP_PORT) || 587,
|
port: Number(process.env.SMTP_PORT) || 587,
|
||||||
secure: false,
|
secure: false,
|
||||||
auth: {
|
auth: {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue