From c2cf24ae1d24e906a681cde29cbd4cacc4e342cd Mon Sep 17 00:00:00 2001 From: Christopher Kolstad Date: Thu, 29 Jun 2023 08:44:27 +0200 Subject: [PATCH] fix: Default email sender to getunleash.io domain (#3739) As part of the move to a unified domain this PR updates the default EMAIL_SENDER to noreply@getunleash.io . Should not be merged/deployed until we've verified DMARC, DKIM for the new domain. --- src/lib/__snapshots__/create-config.test.ts.snap | 2 +- src/lib/create-config.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/__snapshots__/create-config.test.ts.snap b/src/lib/__snapshots__/create-config.test.ts.snap index 0a5a0210bc..d3d82b067f 100644 --- a/src/lib/__snapshots__/create-config.test.ts.snap +++ b/src/lib/__snapshots__/create-config.test.ts.snap @@ -48,7 +48,7 @@ exports[`should create default config 1`] = ` "host": undefined, "port": 587, "secure": false, - "sender": "noreply@unleash-hosted.com", + "sender": "noreply@getunleash.io", "smtppass": undefined, "smtpuser": undefined, }, diff --git a/src/lib/create-config.ts b/src/lib/create-config.ts index 1ad973be91..6a1bbb5a61 100644 --- a/src/lib/create-config.ts +++ b/src/lib/create-config.ts @@ -209,7 +209,7 @@ const defaultEmail: IEmailOption = { host: process.env.EMAIL_HOST, secure: parseEnvVarBoolean(process.env.EMAIL_SECURE, false), port: parseEnvVarNumber(process.env.EMAIL_PORT, 587), - sender: process.env.EMAIL_SENDER || 'noreply@unleash-hosted.com', + sender: process.env.EMAIL_SENDER || 'noreply@getunleash.io', smtpuser: process.env.EMAIL_USER, smtppass: process.env.EMAIL_PASSWORD, };