Really useful stuff here: https://cloudrun.co.uk/exchange-online/configure-exchange-hybrid-mailbox-permissions-during-migration-to-exchange-online/
Run this In powershell/exchange :
Enable-MailUser stephen.d –ExternalEmailAddress [email protected]
run following in normal powershell or update via adsiedit.
Set-ADUser stephen.d –Replace @{msExchRecipientDisplayType = “-2147483642”} (default was 6)
Set-ADUser stephen.d –Replace @{msExchRecipientTypeDetails = “2147483648”} (default was 128)
Set-ADUser stephen.d –Replace @{msExchRemoteRecipientType = “4”} (default was not set)