foxcpp / foxcpp/maddy

HTTP delivery target

Offen
#746 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
mta-in
Vorherrschende Sprache
Go
Sterne
6.1k
Forks
327
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

maddy should be able to forward messages to an arbitrary HTTP endpoint.

```
deliver_to http {
tls_client { ... }
header Authorization "Bearer ..."
format rfc822/headers/json/form
field "body" "{{ header }}" # ???
}
```

## Possible operation modes

### message/rfc822 body

* Content-Type is set to `message/rfc822`.
* The entire message is copied into HTTP body.

## message/rfc822-headers

* Content-Type is set to `message/rfc822-headers`
* Message header is copied into HTTP Body.

## JSON

* Content-Type is set to `application/json`.
* Populated values are defined in configuration.

## form-encoded

* Content-Type is set to `application/x-www-form-urlencoded`
* Populated values are defined in configuration.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.