How to access authentication details (username) from "smtp_server_message_received" function

How to access authentication details (username) from “smtp_server_message_received” function

Hey there @kindhearted-deer, thanks for posting. To ensure the fastest resolution to your issue, please review the following and follow all the steps:

msg:get_meta('authz_id') will return the authorization identity. There is a list of pre-defined metadata values on set_meta - KumoMTA Docs