A Cloudflare Email Worker to transform mails into ntfy notifications.
- Rename
wrangler.example.tomltowrangler.toml. - Set worker name and environment vars in
wrangler.toml. - Set
NTFY_TOKENsecret environment variable on Cloudflare Dashboard. - Run
npm installto install dependencies. - Run
npx wrangler deployto deploy the worker. - Test and enjoy! 🎉
| Name | Usage |
|---|---|
| FORWARD_TO | A Catch-all address. Mail received from non-whitelisted senders will be forwarded to this address. |
| NTFY_ENDPOINT | Ntfy Endpoint URL. |
| NTFY_TOKEN | Ntfy Token. Highly recommended to be configured as Secret / Encrypted |
| WHITELIST | A JSON object containing two lists. The address list contains several email addresses.The domain list contains several domains (without the "@" prefix). |
| TZ | Timezone |