Skip to content

Instantly share code, notes, and snippets.

@Lejo1
Lejo1 / worker.js
Created February 6, 2023 11:26
Listmonk Bounce Processing using Cloudflare Route to workers.yml
const fromAdress = "[email protected]";
const webhook = "https://listmonk.example.com/webhooks/bounce";
const auth = "user:password";
export default {
async email(message, env, ctx) {
if (message.from != fromAdress) {
message.setReject("This is a Noreply Address");
return;
}