HUB
Sign inSign up
arc-milter logo

0kaba0/arc-milter

By 0kaba0

โ€ขUpdated 4 days ago

Postfix milter that ARC-seals forwarded mail with the forwarder's domain key

Image
Networking
Security
0

226

0kaba0/arc-milter repository overview

โ arc-milter

Postfix milter in Go that adds an ARC set (RFC 8617โ ) to each forwarded message, sealed with the forwarder's own key. One process, one job: it checks the chain the message arrived with, copies the forwarding ADMD's Authentication-Results, signs the message and seals the chain. The key is a row of the same dkim table as dkim-milter's, encrypted with a Vault Transit key of its own, arc.

Licensed under AGPLv3, see LICENSEโ . Website: yarilomail.orgโ  ยท Docs: ARC sealingโ  on doc.yarilomail.org

CI Go 1.27 Container Docker Hub License: AGPL v3 Status: stable

โ What it does

  • Seals mail the forwarding relay passes on to other domains (a Sieve redirect) with an ARC set: it validates the chain the message came with, copies the MX's Authentication-Results, signs the message and seals the chain, rsa-sha256 only.
  • Runs after the DKIM signer, so its signature covers the forwarder's DKIM-Signature.
  • Keeps its key apart from the DKIM keys: an arc or arc-<label> row in the same dkim table, encrypted with a Vault Transit key and role of its own, so a flaw here cannot reach the client domains' DKIM keys.
  • Never turns a doubt into a broken chain: a key it never read or a DNS lookup that may answer later delays the message, and only a name failing for hours counts as failed.

โ Documentation

Everything about running it is on doc.yarilomail.orgโ :

โ Repository

PathWhat
app/gothe milter, Go 1.27, go test ./...
app/go/testdataARC chains sealed by dkimpy, an independent implementation, and the script that makes them
helmthe chart
helm_valuesvalues for the yarilo stand

โ Development and release

The tests check chain validation against the dkimpy chains, and a seal of this milter on one of them also validates with dkimpy (ARC_DKIMPY_OUT keeps that message for it).

Work lands on develop through pull requests, with Lint and Test green; main takes releases only. develop carries -dev.N in helm/Chart.yaml, bumped in the PR that changes the image, and each merge builds the image in GHCR. A merge into main with a release version publishes <version> and latest to GHCR and Docker Hub and creates the release v<version>. The chart goes to oci://ghcr.io/yarilomail/charts/arc-milter on a release, signed with cosign.

A release keeps main inside develop: a pull request into develop sets the release version, a pull request from develop into main is merged with a merge commit (not squash or rebase), and the next pull request into develop starts the next -dev.1. No release branch, and no commit lands on main that develop does not have.

Tag summary
Recent tags
Content type
Image
Digest
sha256:f44c42d95โ€ฆ
Size
13.1 MB
Last updated
4 days ago
docker pull 0kaba0/arc-milter:latest