Forum Discussion
Forward shared mailbox to Office365 Group
We want to forward mails from a shared mailbox to a office 365 group so that it will be i nthe converstations of that group. Is this possible?
3 Replies
- Bharatk365Copper Contributor
With "Office365 - Exchange Online" UI, it is not possible to forward email to MS365 Group. So the solution is to use PowerShell to apply forwarding rule.
You need to run following commands
$Cred = Get-Credential$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $Cred -Authentication Basic -AllowRedirection
Import-PSSession $SessionNew-Mailbox -Shared -Name "SharedMailBoxName" -DisplayName "SharedMailBoxName" -Alias SharedMailBoxName | Set-Mailbox -Identity SharedMailbox -ForwardingAddress Groups@domain.com -DeliverToMailboxAndForward $true
- Edwin ArlingtonCopper Contributor
You can try the below mentioned command:
Set-Mailbox -Identity SharedMailbox -ForwardingAddress Groups@domain.com -DeliverToMailboxAndForward $true
or
Get-MessageTrace -RecipientAddress sharedmailbox@contoso.com | Get-MessageTraceDetail
If you would see a Fail under Event tab, then run below command
Get-MessageTrace -RecipientAddress sharedmailbox@contoso.com | Get-MessageTraceDetail | where {$_.event -eq "fail"} | fl It is, just add the group address when asked (or provide it to the -forwardingsmtpaddress in PowerShell).