Email Delivery
GatherGate supports three outbound email drivers: Local Outbox (console), SMTP, and Resend. You can configure defaults via .env or manage per-workspace settings directly in the UI under Settings > Email Delivery.
1. Local Outbox (console, Default)
Section titled “1. Local Outbox (console, Default)”Zero setup required. Outbound invites, 6-digit OTP verification codes, and automated chasers are saved locally in SQLite and viewable in Local Outbox (/outbox) inside a sandboxed (sandbox="") preview iframe.
EMAIL_BACKEND=consoleEMAIL_FROM=GatherGate <noreply@localhost>Ideal for local evaluation, offline tests, and checking your branded email templates before connecting a live mail provider.
2. In-App Configuration (Recommended)
Section titled “2. In-App Configuration (Recommended)”Open Settings > Email Delivery inside GatherGate:
- Select SMTP (includes presets for Gmail, Outlook / Microsoft 365, Fastmail, Amazon SES, or Custom) or Resend.
- Enter your credentials,
Fromaddress, and optionalReply-Toaddress. - Click Save, then click Send test email to verify delivery.
Secrets saved through Settings > Email Delivery are encrypted at rest with HKDF-SHA256 + AES-256-GCM bound to your workspace ID and are never returned in GET /api/settings.
3. Environment Variable Defaults
Section titled “3. Environment Variable Defaults”Resend
Section titled “Resend”Use a domain-scoped Sending access API key (never a full-access key):
EMAIL_BACKEND=resendEMAIL_FROM=Intake <intake@yourfirm.com.au>RESEND_API_KEY=re_xxxxxxxxxxxxxxxxxEMAIL_BACKEND=smtpEMAIL_FROM=Intake <intake@yourfirm.com.au>SMTP_HOST=smtp.fastmail.comSMTP_PORT=465SMTP_SECURE=trueSMTP_USER=intake@yourfirm.com.auSMTP_PASS=your-app-password- Use
SMTP_SECURE=truefor implicit TLS (465) andSMTP_SECURE=falsefor STARTTLS (587). - Ensure SPF, DKIM, and DMARC records are configured on your sending domain so magic-link invites and 6-digit OTP emails land in client inboxes rather than spam.
Multi-Tenant Email Isolation
Section titled “Multi-Tenant Email Isolation”When MULTI_TENANT=true, GatherGate blocks private, loopback, and link-local SMTP hostnames (with DNS resolution checks on both test and live sends) to prevent SSRF, and workspaces cannot inherit host-level SMTP secrets.