We have Office 365 account(O365) on the cloud. We have a situation where we won't be able to use O365 or EWS APIs to access some emails. So the best solution at this moment is, if possible, to forward all incoming/outgoing emails to our mail servers instantly. i.e when a user receives email on O365, a copy of that email should be forwarded to our mail servers.
Is it possible to configure such a setting so that when 0365 has incoming emails, the other mail server also receives a copy? Few seconds delay is fine.
I know this can be done per user basis where each user has to configure a forwarding email address but we wanted to do it for the whole AD accounts not for a single user.
FYI: We have to do heavy processing on each incoming emails.