You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The MX-backend denylist is now entirely operator-supplied via
BLOCKED_EMAIL_MX_HOSTS. Sim is open source, so no specific mail backends are
named in the repo, the env example, or the tests — deployments configure their
own list out of band (e.g. via secrets). The no-MX hygiene check is unchanged;
with an empty denylist no backend is blocked.
Copy file name to clipboardExpand all lines: apps/sim/lib/core/config/env.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,7 @@ export const env = createEnv({
28
28
ALLOWED_LOGIN_DOMAINS: z.string().optional(),// Comma-separated list of allowed email domains for login
29
29
BLOCKED_SIGNUP_DOMAINS: z.string().optional(),// Comma-separated list of email domains blocked from signing up (e.g., "gmail.com,yahoo.com")
30
30
SIGNUP_MX_VALIDATION_ENABLED: z.boolean().optional(),// Opt-in: validate the email's MX backend at signup (blocks no-MX domains and denylisted shared spam backends). Off by default; enable on hosted/abuse-targeted deployments.
31
-
BLOCKED_EMAIL_MX_HOSTS: z.string().optional(),// Comma-separated MX-host substrings blocked from signing up; matches the domain's resolved MX backend (e.g., "215.im,gravityengine.cc"). Catches throwaway domains that share a mail backend. Merged with built-in defaults. Only used when SIGNUP_MX_VALIDATION_ENABLED is set.
31
+
BLOCKED_EMAIL_MX_HOSTS: z.string().optional(),// Comma-separated MX-host substrings blocked from signing up; matched against the domain's resolved MX backend to catch throwaway domains that share a mail backend. No defaults — operators supply their own list. Only used when SIGNUP_MX_VALIDATION_ENABLED is set.
32
32
TRUSTED_ORIGINS: z.string().optional(),// Comma-separated additional origins to trust for auth (e.g., "https://app.example.com,https://www.example.com"). Merged into Better Auth trustedOrigins.
33
33
TURNSTILE_SECRET_KEY: z.string().min(1).optional(),// Cloudflare Turnstile secret key for captcha verification
34
34
SIGNUP_EMAIL_VALIDATION_ENABLED: z.boolean().optional(),// Enable disposable email blocking via better-auth-harmony (55K+ domains)
0 commit comments