--- title: "Forward All Emails from a Mailbox to a Distribution Group" slug: "dex-wf-forward-mailbox-to-distribution-group" updated: 2026-11-30T16:29:14Z published: 2026-11-30T16:29:14Z canonical: "documentation.sysaid.com/dex-wf-forward-mailbox-to-distribution-group" --- > ## Documentation Index > Fetch the complete documentation index at: https://documentation.sysaid.com/llms.txt > Use this file to discover all available pages before exploring further. # Forward All Emails from a Mailbox to a Distribution Group Route all incoming messages from a user or shared mailbox to a distribution group in Exchange Online. **Complexity:** Intermediate. **Impact:** mail-flow + exchange-online + mailbox-configuration + distribution-groups + forwarding. ## Why use this workflow There are many scenarios where you need to redirect all mail arriving at a mailbox to a distribution group: a departing employee's messages going to their team, a role-based inbox (like `info@` or `support@`) feeding a shared notification list, or an alias consolidating messages into a team workflow. Exchange Online offers several mechanisms for this: mailbox-level forwarding (`ForwardingAddress` / `ForwardingSmtpAddress`), inbox rules, and transport rules. Each has different behavior around keeping copies, handling aliases, and respecting external-forwarding policies. This workflow covers the most common path: configure **mailbox-level forwarding** via Exchange Online so that mail sent to the mailbox (including all its SMTP aliases) is automatically delivered to a distribution group. Run this when you need a durable, admin-controlled forwarding setup that survives the user signing out, their Outlook rules being deleted, or their mailbox being converted between shared and regular types. ## Expected outcomes ### After completing this workflow you will have: - Confirmed the source mailbox and its alias addresses - Identified the target distribution group and verified it accepts internal mail - Configured mailbox-level forwarding on the source mailbox to the distribution group - Chosen whether to keep a copy of each message in the source mailbox - Validated that mail sent to the primary address *and* each alias is successfully forwarded ## Risks and considerations ### Important considerations - **Mail loops:** Never set forwarding such that the target group contains the source mailbox. This creates an infinite loop and is blocked by Exchange, but misconfigurations can still cause NDR storms. - **External forwarding policy:** If the distribution group resolves to an external address, the tenant's anti-spam outbound policy (`AutoForwardEnabled`) may block delivery silently. This workflow assumes an internal distribution group. - **Graph API limitations:** The Microsoft Graph `mailboxSettings` resource does *not* include `ForwardingAddress`, `ForwardingSmtpAddress`, or `DeliverToMailboxAndForward`, so you cannot set mailbox-level forwarding through `PATCH /users/{id}/mailboxSettings`. For mailbox-level forwarding, use **Exchange Online PowerShell** (`Set-Mailbox`) or the Exchange admin center. - **Inbox rules vs. mailbox forwarding:** Inbox rules (created via Graph or Outlook) only fire when the mailbox is actively processing the Inbox folder. They can be deleted by the user and do not apply to messages delivered directly to aliases that bypass the Inbox. Mailbox-level forwarding is the stronger, admin-enforced option. - **Audit and compliance:** Silently forwarding a user mailbox to a group may have legal or HR implications. Document the change and, where required, notify the mailbox owner. - **Distribution group membership changes:** Anyone added to the target group will now receive all forwarded mail. Review group membership before enabling. ## Required permissions | Permission | Why it's needed | | --- | --- | | Exchange Administrator (or Recipient Administrator) | Required to run Set-Mailbox and modify forwarding properties on any mailbox in the tenant | | Exchange.ManageAsApp (Graph) | Required when running Exchange Online PowerShell from an automation/service principal context | | MailboxSettings.ReadWrite | Required only if using Graph inbox rules as a fallback approach (weaker than Set-Mailbox) | | Mail.ReadWrite | Required to create Graph-based inbox rules on the source mailbox | | Group.Read.All | Required to look up the target distribution group's primary SMTP address | ## Ask Dex Paste the prompt into a Dex conversation. ### Prompt for IT admins ``` Forward all mail sent to {source_mailbox} (including its aliases) to the distribution group {target_group}. Keep a copy in the original mailbox, confirm there is no mail loop, and verify delivery with a test message. ``` ### How an end user can ask Dex ``` Please send a copy of every email that comes to {source_mailbox} to our {target_group} group as well. ``` ## Manual steps (admin center) The Exchange admin center (EAC) is the most reliable GUI path because it writes to the same mailbox properties as `Set-Mailbox`. ### Step 1: Open the Exchange admin center 1. Sign in to the [Exchange admin center](https://admin.exchange.microsoft.com) as an Exchange Administrator. 2. Go to **Recipients** > **Mailboxes**. ### Step 2: Locate the source mailbox 1. Search for the mailbox by display name or primary SMTP (e.g. `{source_mailbox}`). 2. Click the mailbox to open its properties pane. 3. Confirm the aliases listed under **Email addresses** match what you expect (e.g. `{primary_address}` and `{alias_address}`). All aliases automatically inherit the forwarding setting. ### Step 3: Configure mail flow forwarding 1. Select the **Mailbox** tab in the properties pane. 2. Under **Mail flow settings**, click **Manage email forwarding**. 3. Toggle **Forward all emails sent to this mailbox** to *On*. 4. In **Forwarding address**, enter the distribution group's primary SMTP address (e.g. `{target_group}@{domain}`). 5. Check **Deliver message to both forwarding address and mailbox** if you want to retain a copy in the source mailbox (recommended for audit). 6. Click **Save**. ### Step 4: Validate 1. From an external account, send a test message to the primary address (`{primary_address}`). 2. Send a second test message to each alias (`{alias_address}`). 3. Confirm that members of `{target_group}` receive both messages. 4. If you enabled **Deliver message to both forwarding address and mailbox**, confirm the source mailbox also retains copies. ## Microsoft Graph API **Important:** Microsoft Graph does not expose the canonical `ForwardingAddress` / `ForwardingSmtpAddress` mailbox properties. The only forwarding mechanism available via Graph is an **Inbox rule**, which is weaker than mailbox-level forwarding (it can be deleted by the user and only processes messages that land in the Inbox folder). For production-grade forwarding, use the PowerShell workflow below. ### Step 1: Look up the source mailbox ``` GET https://graph.microsoft.com/v1.0/users/{source_mailbox}?$select=id,displayName,userPrincipalName,proxyAddresses ``` Response includes the mailbox `id` and all SMTP aliases in `proxyAddresses` (aliases prefixed `smtp:`, primary prefixed `SMTP:`). ### Step 2: Look up the target distribution group ``` GET https://graph.microsoft.com/v1.0/groups?$filter=mail eq '{target_group}@{domain}'&$select=id,displayName,mail,mailEnabled ``` Confirm `mailEnabled` is `true`. A security-only group cannot receive forwarded mail. ### Step 3: Create an inbox rule on the source mailbox ``` POST https://graph.microsoft.com/v1.0/users/{mailbox_id}/mailFolders/inbox/messageRules Content-Type: application/json {  "displayName": "Forward all to {target_group}",  "sequence": 1,  "isEnabled": true,  "conditions": {},  "actions": {    "forwardTo": [      {        "emailAddress": {          "address": "{target_group}@{domain}"        }      }    ],    "stopProcessingRules": true  } } ``` An empty `conditions` object means the rule matches every incoming message. Response `201 Created` returns the rule `id`. ### Gotchas - The signed-in context needs `Mail.ReadWrite` and often `Mail.ReadWrite.Shared` for shared mailboxes. Admin consent alone is not always sufficient: the admin may also need explicit **Full Access** permission on the target mailbox in Exchange. - Inbox rules do *not* apply to mail delivered to the Junk Email folder or to messages routed by transport rules before they hit the Inbox. - For a durable, tenant-enforced setup, prefer the PowerShell path. ## PowerShell This is the supported way to configure mailbox forwarding, and what the Exchange admin center calls under the hood. ### Step 1: Connect to Exchange Online ``` # Install module once, if needed Install-Module -Name ExchangeOnlineManagement -Scope CurrentUser # Connect as an Exchange Administrator Connect-ExchangeOnline -UserPrincipalName admin@{domain} ``` ### Step 2: Verify the source mailbox and target group ``` Get-Mailbox -Identity "{source_mailbox}" | Select-Object DisplayName,PrimarySmtpAddress,EmailAddresses,RecipientTypeDetails Get-DistributionGroup -Identity "{target_group}@{domain}" | Select-Object DisplayName,PrimarySmtpAddress,MemberJoinRestriction ``` ### Step 3: Apply forwarding ``` # Forward and keep a copy in the source mailbox Set-Mailbox -Identity "{source_mailbox}" `    -ForwardingAddress "{target_group}@{domain}" `    -DeliverToMailboxAndForward $true ``` `ForwardingAddress` expects a recipient that exists in the directory (like a distribution group) and is the preferred property. Use `ForwardingSmtpAddress` only for external/non-directory addresses. ### Step 4: Confirm ``` Get-Mailbox -Identity "{source_mailbox}" | Select-Object PrimarySmtpAddress,ForwardingAddress,ForwardingSmtpAddress,DeliverToMailboxAndForward ``` ### Step 5: Test and monitor 1. Send test messages to both the primary address and each alias. 2. Check message trace: `Get-MessageTrace -RecipientAddress {source_mailbox} -StartDate (Get-Date).AddHours(-1) -EndDate (Get-Date)` ### To remove forwarding later ``` Set-Mailbox -Identity "{source_mailbox}" -ForwardingAddress $null -ForwardingSmtpAddress $null ```