Skip to content

Latest commit

 

History

History
28 lines (21 loc) · 1.86 KB

README.md

File metadata and controls

28 lines (21 loc) · 1.86 KB

mail2ntfy

A Cloudflare Email Worker to transform mails into ntfy notifications.

Usage

  1. Rename wrangler.example.toml to wrangler.toml.
  2. Set worker name and environment vars in wrangler.toml.
  3. Set NTFY_TOKEN secret environment variable on Cloudflare Dashboard.
  4. Run npm install to install dependencies.
  5. Run npx wrangler deploy to deploy the worker.
  6. Test and enjoy! 🎉

Environment Variables

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

Credits