I just noticed that in my setup I kinda had the default config for the kumomta logs like this:
kumo.configure_local_logs {
log_dir = '/var/log/kumomta',
max_segment_duration = '10 minute',
headers = { 'Subject' },
}
I also use the policy-extras.log_hooks to log stuff into logstash… but no Subject logging there too.
log_hooks:new_json {
name = 'webhook',
url = 'http://x.y.z.a:5080/',
log_parameters = {
headers = { 'Subject' },
},
queue_config = {
retry_interval = '1m',
max_retry_interval = '20m',
},
}
But when looking in the logs I don’t see the Subject header in any of the logs. I did want to add extra logging of headers due to the NDR messages not being send. But the Subject not being in any of the logs make s me think that either my config is broken or that there is a bug in logging the headers.
In the logs I see this:
{
"type": "Delivery",
"id": "3c6b9825134a11efa6e002666fd40793",
"sender": "firstname.lastname@xxxx.com",
"recipient": "firstname.lastname@yyyy.com",
"queue": "http://127.0.0.1:8008.tsa.kumomta",
"site": "unspecified->http://127.0.0.1:8008.tsa.kumomta@lua:make.http://127.0.0.1:8008.tsa.kumomta",
"size": 895,
"response": {
"code": 200,
"enhanced_code": null,
"content": "200 OK: ",
"command": null
},
"peer_address": {
"name": "Lua via make.http://127.0.0.1:8008.tsa.kumomta",
"addr": "0.0.0.0"
},
"timestamp": 1715839503,
"created": 1715839503,
"num_attempts": 0,
"bounce_classification": "Uncategorized",
"egress_pool": "unspecified",
"egress_source": "unspecified",
"feedback_report": null,
"meta": {},
"headers": {},
"delivery_protocol": "Lua",
"reception_protocol": "LogRecord",
"nodeid": "234f64a1-0345-419b-a259-8aad0bbf8ea3"
}
OS: Debian 10
KumoMTA version(s): 2024.04.12.081810.af61dee6 and 2024.05.29.111636.d8cc6d98