Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTTP delivery target #746

Open
foxcpp opened this issue Jan 25, 2025 · 1 comment
Open

HTTP delivery target #746

foxcpp opened this issue Jan 25, 2025 · 1 comment
Labels
mta-in Related to incoming message processing part of the MTA functionality (mail exchanger).

Comments

@foxcpp
Copy link
Owner

foxcpp commented Jan 25, 2025

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.
@foxcpp foxcpp added mta-in Related to incoming message processing part of the MTA functionality (mail exchanger). good first issue Easy to do, good for newcomers. and removed good first issue Easy to do, good for newcomers. labels Jan 25, 2025
@foxcpp
Copy link
Owner Author

foxcpp commented Jan 25, 2025

Blocked by the need to have a general-purpose templating functionality in configuration to produce JSON values from message/configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mta-in Related to incoming message processing part of the MTA functionality (mail exchanger).
Projects
None yet
Development

No branches or pull requests

1 participant