Hi Mohammad,
I would like to confirm how the emails are currently being routed to the cloud devices for the 5 internal domains sending emails outbound.
I would suggest using content filters to accomplish alternate routing for the 2 internal domains (which should be routed to cloud) and letting the other 3 internal domains use DNS to deliver emails.
Content Filter:
Condition -
Envelope Sender: Internal Domain1/Domain2
Action:
Send to Alternate Destination Host: IP for cloud device
With the above content filter in place if there are no specific SMTP routes defined, emails from the other 3 internal domains would use DNS to deliver emails directly to the destination over internet.
Thanks
Libin Varghese