This repository contains the source code for the Papra email proxy. The Papra email proxy is a custom Cloudflare Email worker that allows to forward emails to your Papra instance for document ingestion.
- Deploy this worker to your Cloudflare account.
a. Clone this repository.
b. Install the dependencies with
pnpm install
. c. Deploy the worker withpnpm run deploy
(alias forwrangler publish
). - Configure the worker with the following environment variables:
WEBHOOK_URL
: The ingestion endpoint of your Papra instance, basicallyhttps://<your-instance>/api/intake-emails/ingest
.WEBHOOK_SECRET
: The secret key to authenticate the webhook requests, the same as theINTAKE_EMAILS_WEBHOOK_SECRET
environment variable in your Papra instance.
- Configure CF email routing rules to forward emails to the worker. a. Create a new email catch-all rule in your Cloudflare account. b. Set the action to trigger the worker you deployed in step 1.
- In your Papra instance, generate some "intake emails" under the "Integrations" section and set an allowed email address to receive emails from.
Contributions are welcome! Feel free to open issues or submit pull requests.
This project is licensed under the MIT License. See the LICENSE file for more information.
This project is crafted with ❤️ by Corentin Thomasset. If you find this project helpful, please consider supporting my work.