- 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>
34 lines
1.3 KiB
TOML
34 lines
1.3 KiB
TOML
[package]
|
|
name = "mail-submit"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
rust-version.workspace = true
|
|
description = "Scribase Mail SMTP submission server (ports 587 STARTTLS / 465 implicit TLS): AUTH PLAIN/LOGIN with an sk_ API key as the password, hands messages to the mail-core pipeline. Independent implementation, written without reference to useSend or Stalwart server source."
|
|
|
|
[lib]
|
|
path = "src/lib.rs"
|
|
|
|
[[bin]]
|
|
name = "mail-submit"
|
|
path = "src/main.rs"
|
|
|
|
[dependencies]
|
|
mail-core = { path = "../mail-core" }
|
|
mail-types.workspace = true
|
|
serde_json.workspace = true
|
|
thiserror.workspace = true
|
|
|
|
tokio = { version = "1", features = ["rt-multi-thread", "macros", "net", "io-util", "time", "sync", "signal"] }
|
|
tokio-rustls = { version = "0.26", default-features = false, features = ["ring", "tls12", "logging"] }
|
|
rustls = { version = "0.23", default-features = false, features = ["ring", "tls12", "std", "logging"] }
|
|
rustls-pemfile = "2"
|
|
# SMTP command parsing (MIT OR Apache-2.0). Header handling uses mail-core's parser.
|
|
smtp-proto = "0.2"
|
|
sqlx = { version = "0.8", default-features = false, features = ["runtime-tokio-rustls", "postgres"] }
|
|
base64 = "0.22"
|
|
uuid = { version = "1", features = ["v4"] }
|
|
tracing = "0.1"
|
|
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
|
anyhow = "1"
|