Routing For a Subnet/Host
Currently we can route based off of MessageSourceAddress. But we are interested in routing messages to a folder based off of particular octets.
For example...(this doesn't work...just used to show what we would like to try to do on a conceptual basis).
if ($MessageSourceAddress == "192.*.*.100" ) { reroute("1"); }
We've tried escaping the wildcards, using 0s...I don't think that regex would work there...so what is the prescribed solution? Does anybody have something similar in place? Even just to get a host that ends in a specific octet would be helpful.
Regards,
-Tony
I don't think that regex would work there.
Why not?
Haven't tested but the following should work IMO:
if ($MessageSourceAddress =~ "^192\.\d+\.\d+\.100" ) { reroute("1"); }