I am currently working on a Custom routing agent. We are rerouting emails based on a header values etc.
When rerouting messages we are using domains and RoutingDomain, RoutingOverride classes. At the end, we are calling SetRoutingOverride method.
I have to filter out certain messages and reroute them to a specific IP address, but I am not sure how to implement this.
Is there an API for rerouting to IP addresses or should I try to resolve IP with the dns resolve and then use that domain with the existing API ?