How to get IP/ehlo_domain of message before send

Hello,

I’m looking for a way to get the IP/ehlo_domain that will be used to send a message (while having access to the message object to modify it), so just before it goes into the Ready queue ?

I’ve looked at the reference manual for the message object and the “Predefined Metadata” but i haven’t found what i was looking for

Thank you for your help.

What is your use case?

The messages my kumoMTA instance receives are already DKIM signed, i want to add an additional DKIM signature on additional headers added by my kumoMTA instance (signed by the ehlo_domain)

It won’t be able to work that way. By the time the queue maintainer sees the message to assign it to a ready queue the DKIM signing hook has already fired.

What you could do is set the tenant name to the EHLO domain to be used, and look at that when it’s time to sign the DKIM. Or you could set the DKIM for the tenant explicitly knowing what you want the signature to be.

That said, the most common DKIM implementations in ESPs is to sign the from header domain, and add a second signature that represents the ESP.

It’s not common to specifically associate the second DKIM signature with the EHLO unless that coincidentally is also the ESP’s domain.

Alright i will look into that, thank you !