Skip to content

Add automated Cloudflare Email Worker for VoidOne - #30

Merged
mohammedmk3900-rgb merged 8 commits into
mainfrom
feat/email-worker-gateway
Oct 14, 2026
Merged

mohammedmk3900-rgb merged 8 commits into
mainfrom
feat/email-worker-gateway

Conversation

@mohammedmk3900-rgb

Copy link
Copy Markdown
Contributor

Summary

  • Add a dedicated Cloudflare Email Worker under email-worker/ for inbound VoidOne support aliases.
  • Add routing policy, sender/domain blocklists, attachment policy checks, structured audit logs, optional Slack alerts, and optional KV persistence.
  • Add policy unit tests.
  • Add a GitHub Actions workflow that tests on PR changes and deploys to Cloudflare after the changes are merged to main, once the required Cloudflare repository secrets exist.

Deployment requirements

Set repository Actions secrets:

  • CLOUDFLARE_API_TOKEN
  • CLOUDFLARE_ACCOUNT_ID

After first deployment, configure GMAIL_INBOX (and optional route-specific destinations) in Worker Variables and Secrets before enabling Email Routing rules. See email-worker/README.md.

Safety notes

This is a policy-based attachment filter, not antivirus. MIME parse failures are forwarded with a warning by default; STRICT_MIME_SCAN=true changes that to reject. No message body or subject is written to audit logs.

Validation

The workflow runs Node policy tests. Live delivery still requires Cloudflare account configuration and end-to-end testing.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@mohammedmk3900-rgb
mohammedmk3900-rgb merged commit d5c48bd into main Oct 14, 2026
2 checks passed
@mohammedmk3900-rgb
mohammedmk3900-rgb deleted the feat/email-worker-gateway branch October 14, 2026 03:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant