Mail routing or authentication changed
Start when the observed MX, SPF or DMARC records differ from the previous check. The first check saves a baseline.
Workflow template
Store each observed change to MX, SPF or DMARC with the domain, timestamp and both configurations. A unique change ID makes replay safe.
How it works
Start when the observed MX, SPF or DMARC records differ from the previous check. The first check saves a baseline.
Insert a row or update mapped columns when a unique key already exists. Use a stable key for repeatable delivery.
Before activation
Create a table with change_id TEXT PRIMARY KEY, domain TEXT, previous TEXT, current TEXT and observed_at TIMESTAMPTZ. Grant the PostgreSQL connection the permissions needed for an upsert.
Select the Cloudflare zone and enter the full mail domain in the trigger. Its first successful poll saves a baseline. Map the database step to your audit table.
Change a mail record on a test domain after the baseline. Compare the previous and current values in PostgreSQL. Replaying the same change should still leave one row for its change ID.