I’m encountering an issue with processing Out-of-Band (OOB) messages in KumoMTA. The system keeps relaying them internally, even though I haven’t set relay_to = true in my listener domain.toml configuration.
Additionally, while the messages are correctly logged as OOB, but the header field in the JSON logs comes empty, despite having specified custom headers in the log configuration within init.lua.
Could you please help me resolve this? I want the OOB to be logged and discarded not to be relayed.
Sample SMT server
Message queue=default-tenant@xxxx relay=true log_arf=“Ignore” log_oob=“LogThenRelay” was_arf_or_oob=Some(true) will_enqueue=Some(true)
Log config
kumo.configure_local_logs {
log_dir = ‘/var/log/kumomta’,
max_segment_duration = ‘10 seconds’,
headers = { ‘X-Customer-ID’,‘X-Campaign’,‘X-Data’},
}
listener_domain.tol
[“domain”]
log_oob = true
relay_to = false
Sample of OOB
{
“type”: “OOB”,
“id”: “65f45a7656f111f0acc30050565b6d49”,
“sender”: “xxxxx”,
“recipient”: “xxxx”,
“queue”: “default-tenant@xxx”,
“site”: “”,
“size”: 0,
“response”: {
“code”: 550,
“enhanced_code”: {
“class”: 5,
“subject”: 1,
“detail”: 1
},
“content”: “5.1.1 RESOLVER.ADR.RecipNotFound; not found”,
“command”: null
},
“peer_address”: {
“name”: “XXXX”,
“addr”: “209.145.58.146”
},
“timestamp”: 1751425524,
“created”: 1751425524,
“num_attempts”: 0,
“bounce_classification”: “InvalidRecipient”,
“egress_pool”: null,
“egress_source”: null,
“source_address”: null,
“feedback_report”: null,
“meta”: {},
“headers”: {},
“delivery_protocol”: null,
“reception_protocol”: “ESMTP”,
“nodeid”: “cb7e6242-f2e0-4054-b403-0dc818a57bb4”,
“session_id”: “d58c7dc6-bc2c-454c-ba4b-50f6f03a0560”
}
Thanks.