I've create this rule to capture all messages sent outside of the organization and put it in a shared mailbox and in a second phase an azure function with microsoftgraph take the message and forward to the same recipients and put deliver@---.onmicrosoft.com in BCC
the two exceptions are for send email messages outside without being processed and redirect in mail-out.
the system is working but with a large number of recipients the exception does not work and the message is reprocessed and create a loop
has anyone some clue to investigate this behaviour and a workaround?
obiuvsly we insert a function to split the email message when you have more than 15 recipient in many email messages but its not so elegant...thank you in ADV