Curetix / mailflare-extension

Browser extension to use Cloudflare Email Routing as an email alias service like AnonAddy or SimpleLogin
https://mailflare.cc
MIT License
51 stars 2 forks source link
browser-extension cloudflare email plasmo react typescript

Cloudflare Email Extension

Latest GitHub release Chrome Web Store Version GitHub Workflow Status

This extension provides an easy way to turn Cloudflare Email Routing into your own private email alias service, similar to AnonAddy, SimpleLogin, and others. No third-party services or tedious configuration of a self-hosted email server needed. A web version is also available at mailflare.pages.dev.

Built with React, Plasmo, and Mantine UI

Screenshots

Alias List Create Alias

Features

Installation

Chrome and other Chromium Browsers

Chrome Web Store

Download the extension either directly from the Chrome Web Store, or:

Firefox

Firefox Add-ons

Progressive Web App

The web version of MailFlare is a PWA and can be "installed" on any device. Look for the installation icon displayed in your desktop browsers address bar, or the installation prompt your mobile browser automatically shows when visiting the site.

Limitations

See this page:

Additionally, there is a limit of 200 email rules (aliases) and 200 destination addresses per domain.

Create a Cloudflare API token

  1. Create a Cloudflare account, add the domain(s) you want to use and enable Email Routing for the domain(s)
  2. Go to this page
  3. Click "Create Token"
  4. Select "Create Custom Token"
  5. Choose a name, like "Email Extension"
  6. Configure the following permissions (explained in the next section):
    • Account | Email Routing Addresses | Read
    • Zone | Email Routing Rules | Edit
    • Zone | Zone | Read
    • Optional: Zone | Zone Settings | Read
  7. Set "Account Resources" to your account
  8. Set "Zone Resources" to "All zones" or select the zone you want to use
  9. Configure "Client IP Address Filtering" and "TTL" if you want to
  10. Click "Continue to summary" and then "Create token"
  11. Copy the generated API key

Your API key is stored locally in your browser and is used to directly communicate with the Cloudflare API.

Permissions explained

Build instructions

  1. Install Node.js (the automated build workflow uses Node.js v20) and pnpm (with npm install -g pnpm)
  2. Clone the repository: git clone https://github.com/curetix/mailflare-extension
  3. Install the dependencies: pnpm install
  4. Run the build command: pnpm build (for Chromium), pnpm build:firefox (for Firefox), or pnpm build:all for all targets
  5. The output will be in the folder build/chrome-mv3-prod or build/firefox-mv3-prod

Loading the extension (non-signed builds):