Skip to content

A Cloudflare Email Worker to transform mails into ntfy notifications.

Notifications You must be signed in to change notification settings

Potat0000/mail2ntfy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A Cloudflare Email Worker to transform mails into ntfy notifications.

Topics

Resources

Stars

Watchers

Forks