Submit meta fields via API

Hello - we are looking to move over to kumomta for our primary outbound mta for an internal application. With our current configuration we have the ability to submit metadata with the message to the API and will not be added to the outgoing message but will be reported back via events+logs and will persist through any kind of deferral/retry. We’ve made this work on kumomta by using a header field. We put them in an X- header and move those headers into meta and then remove the headers before continuing injection.

My question is, is this the right way or are we missing something obvious?

Thanks!

For now this is the right way, but we’ll look at adding direct metadata infection to the API.

awesome, glad i’m on the right track. between the docs and examples + unit/integration tests it makes it very easy to integrate