Is there an option to identify all other To, CC, and BCC messages?

Is there a way to easily identify all messages addressed in the To, CC, and BCC fields? Looking for tools or tips to streamline this process. Any suggestions would be greatly appreciated!

What do you mean by identifying messages addressed in the To, CC, BCC fields?

You can use webhooks to inspect all messages including their headers

i need this details in kumomta log / smtp_server_message_received event .

is there any pobibility to track cc,bcc data using above events ?

One sec

Yes

kumo.on("smtp_server_message_received", function(msg)
    -- Extract and process the X-Sending-Zone header
    local zoneIdPrefixed = msg:get_first_named_header_value("X-Sending-Zone")

end)

This is what I use to get a custom header

Btw, BCC isn’t a header

message:recipient()

That will return the envelope recipient

Import_headers will pull all headers including To,Cc,subject,etc into meta data that you can then manipulate or record. You can also just list those headers in the log definition and they will be logged. This is all documented.

message:get_all_headers() will also do the trick

this is more help ful . But how i get Bcc ?

^^

currently bcc is not tracking

BCC isn’t a header

It’s just the mail envelope recipient