MailFlow

SkillFlow setup guide

Local simulations already save to this computer. Run the background worker alongside the app to continue processing after a browser tab closes.

  1. Buy and configure sending domains. Keep the main website separate. For automatic domain failover, use at least two different registered domains. Create independent Google Workspace mailboxes and an additional spare.
  2. Configure domain email. Add domains as secondary domains in Google Workspace. Set up MX, SPF, DKIM and DMARC. Add each domain on the Domains page and copy its ownership TXT record to your DNS provider.
  3. Create a Firebase/Google Cloud project. Enable Firestore and Firebase Authentication with Google sign-in. Create a web app and configure its Firebase values on the server. For production, use Firestore storage and Firebase Admin credentials through the hosting service identity.
  4. Enable Gmail API and create a Google OAuth web client. Add the exact app URL and callback /api/google/callback. For localhost, use http://localhost:3000/api/google/callback. Configure client ID and secret on the server. Public Gmail read access needs Google’s verification process.
  5. Connect owned accounts. Connect sending mailboxes and a separate owned Gmail or Workspace seed inbox on the Domains page. The app requests permission; it never asks for mailbox passwords.
  6. Run health probes. A real test message goes to your owned seed inbox. Wait for the worker to check its matching token and actual folder. Activate healthy mailboxes and keep one as spare.
  7. Deploy the worker. Configure Cloud Tasks and an authenticated Cloud Scheduler recovery trigger. Their service account must be authorized to invoke the worker. Keep live mode disabled until storage, scheduling, DNS and health checks pass.
  8. Live test. Enable live mode only after setup and test using your own addresses. The simulation build is not evidence of real deliverability.

Credentials belong in the local environment or hosting secret store. Do not paste private keys, OAuth secrets, or refresh tokens into chat or commit them to GitHub.