https://github.com/madkarmaa/cloudflare-new-email
A simple utility script to add a new email forwarding rule to a Cloudflare-registered domain
https://github.com/madkarmaa/cloudflare-new-email
cloudflare cloudflare-api cloudflare-email cloudflare-email-routing email
Last synced: about 1 month ago
JSON representation
A simple utility script to add a new email forwarding rule to a Cloudflare-registered domain
- Host: GitHub
- URL: https://github.com/madkarmaa/cloudflare-new-email
- Owner: madkarmaa
- Created: 2025-04-09T10:08:22.000Z (about 2 months ago)
- Default Branch: master
- Last Pushed: 2025-04-09T10:44:04.000Z (about 2 months ago)
- Last Synced: 2025-04-09T11:31:04.768Z (about 2 months ago)
- Topics: cloudflare, cloudflare-api, cloudflare-email, cloudflare-email-routing, email
- Language: Python
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Cloudflare New Email Generator
> _A simple utility script to add a new email forwarding rule to a Cloudflare-registered domain._
## Installation ⚙️
### Get your API token
Go to [your profile's API tokens tab](https://dash.cloudflare.com/profile/api-tokens) and click the **View** button for your **Global API Key**, then copy it.
> [!CAUTION]
>
> If you choose to save your token when running the script, make sure that the `.creds` file doesn't get shared!### Get your domain's Zone ID
Go to [your profile's domains tab](https://dash.cloudflare.com), select your domain, scroll down the **Overview**'s tab and copy the **Zone ID**.
### Install UV
Follow the docs for your platform [here](https://docs.astral.sh/uv/getting-started/installation/).
### Clone the repository
```bash
git clone https://github.com/madkarmaa/cloudflare-new-email.git
cd ./cloudflare-new-email/
```### Install the dependencies
```bash
uv sync
```### Run the program
```bash
uv run ./main.py
```