SupabaseS
Supabase2mo ago
Jeffa

Local dev mailpit

I've been trying to send emails using Supabase Auth. This works perfectly on Supabase's hosted environment, but when I try to do it locally, I get the following error in my Docker Auth container:
{"level":"info","msg":"Request received external host in X-Forwarded-Host or Host headers, but the values have not been added to GOTRUE_MAILER_EXTERNAL_HOSTS and will not be used. To suppress this message add the host, or sanitize the headers before the request reaches Auth.","time":"2025-11-08T00:04:13Z","x_forwarded_host":"x.x.x.x","x_forwarded_proto":"http"}
I'm using the Supabase CLI to initialize my Docker container. I’ve tried adding the GOTRUE_MAILER_EXTERNAL_HOSTS variable to both the root .env and /supabase/.env files, and I’ve also attempted to set it via the external_url in config.toml, but the issue persists.
Was this page helpful?