- mail-server spawns SMTP submission + HTTPS inbound ingest, mounts Supabase hook router - RelayPool is the default transport; relay rejections mark email failed without suppressing recipient - inbound DSN/ARF -> bounced/complained + suppression + webhooks - domains API returns Resend-style records incl. OCI DKIM; OCI onboarding gated by OCI_ONBOARDING=on - OCI suppression mirror sync; docs: test mode uses sk_test_ Verified end to end locally against a fake relay (API + SMTP send, DKIM valid, bounce -> suppressed -> 403, complaint, Supabase hook, 7 signed webhooks). Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
36 lines
1.2 KiB
TOML
36 lines
1.2 KiB
TOML
[package]
|
|
name = "mail-hooks"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
rust-version.workspace = true
|
|
description = "Supabase Auth Send Email Hook endpoint for Scribase Mail: Standard Webhooks signature verification, per-project templates, sends through mail-core. Independent implementation, written without reference to useSend source."
|
|
|
|
[lib]
|
|
path = "src/lib.rs"
|
|
|
|
[[bin]]
|
|
name = "mail-hooks"
|
|
path = "src/main.rs"
|
|
|
|
[dependencies]
|
|
mail-core = { path = "../mail-core" }
|
|
mail-types.workspace = true
|
|
serde.workspace = true
|
|
serde_json.workspace = true
|
|
thiserror.workspace = true
|
|
|
|
axum = { version = "0.8", features = ["json", "query"] }
|
|
tokio = { version = "1", features = ["rt-multi-thread", "macros", "net", "signal", "time"] }
|
|
sqlx = { version = "0.8", default-features = false, features = ["runtime-tokio-rustls", "postgres", "uuid", "time", "json"] }
|
|
hmac = "0.12"
|
|
sha2 = "0.10"
|
|
base64 = "0.22"
|
|
uuid = { version = "1", features = ["v4", "serde"] }
|
|
time = { version = "0.3", features = ["serde", "formatting"] }
|
|
url = "2"
|
|
tracing = "0.1"
|
|
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
|
tower-http = { version = "0.6", features = ["trace"] }
|
|
anyhow = "1"
|