--- title: "Create a Distribution List and Configure Shared Mailbox Forwarding" slug: "dex-wf-create-dl-shared-mailbox-forwarding" updated: 2026-11-30T16:30:49Z published: 2026-11-30T16:30:49Z canonical: "documentation.sysaid.com/dex-wf-create-dl-shared-mailbox-forwarding" --- > ## 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. # Create a Distribution List and Configure Shared Mailbox Forwarding Provision a mail-enabled distribution list with external members and forward a shared mailbox (and its aliases) to it. **Complexity:** Intermediate. **Impact:** mail-flow + exchange-online + distribution-group + shared-mailbox + forwarding. ## Why use this workflow A common Exchange Online pattern is to route inbound mail from a public-facing address (e.g. `info@company.com`) to a small team rather than a single person. The clean way to do this is: 1. Create a **mail-enabled distribution list** (DL) that contains the recipients. 2. Ensure any non-tenant members exist as **Mail Contacts** (DLs cannot contain raw external addresses, they need directory objects). 3. Configure the DL to accept mail from **external senders**. 4. Set **mailbox forwarding** on the shared mailbox so every message (including those delivered to its SMTP aliases, such as `dex@company.com`) is redirected to the DL. Run this workflow when you are standing up a new shared inbox, reorganizing who owns an existing one, or consolidating multiple aliases behind a single team-routing address. **Important platform note:** Microsoft Graph *cannot* create classic distribution lists, cannot create Exchange mail contacts, and cannot set mailbox forwarding, because the `mailboxSettings` resource has no forwarding property. These are Exchange Online objects owned by the Exchange service. The authoritative tooling is **Exchange Online PowerShell** or the **Exchange admin center**. Graph is only useful here for preflight lookups (confirming users, aliases, and existing groups). ## Expected outcomes ### After completing this workflow you will have: - A mail-enabled distribution list `{dl_address}` visible in the Exchange admin center and GAL. - All required members (internal users and/or external mail contacts) added to the DL. - The DL configured to **accept mail from senders outside the organization**. - The source shared mailbox `{source_mailbox}` forwarding all inbound mail to the DL, with or without keeping a local copy. - Verified that mail sent to any SMTP alias of the shared mailbox (e.g. `{alias_address}`) also flows to DL members, because aliases are accepted addresses on the same mailbox and follow the same forwarding rule. ## Risks and considerations ### Things to watch for - **Graph API limitation:** `POST /v1.0/groups` with `mailEnabled:true` and `securityEnabled:false` returns `Request_BadRequest`. Graph does not author distribution lists. Switch to Exchange Online PowerShell. - **External members must be Mail Contacts.** A distribution list cannot store a bare external SMTP address. You must first create a `MailContact` with `New-MailContact`, then add it with `Add-DistributionGroupMember`. - **Anti-auto-forwarding policy:** Many tenants have an outbound anti-spam policy that blocks auto-forwarding to external recipients. If the DL contains external contacts and the shared mailbox forwards to it, recipients may silently stop getting mail. Review **Anti-spam outbound policy** > **Automatic forwarding rules** before going live. - **External senders to the DL:** Setting `RequireSenderAuthenticationEnabled $false` allows anyone on the internet to mail the list. This is usually desired for `info@`-style addresses but increases spam exposure. Keep the DL protected by your normal inbound mail hygiene. - **Keep a copy?** Decide whether the shared mailbox should also retain a local copy (`DeliverToMailboxAndForward $true`) for auditing/compliance, or forward only (`$false`). Forwarding-only means no archive in the source mailbox. - **Graph cannot set mailbox forwarding.** The Microsoft Graph `mailboxSettings` resource does not include `ForwardingSmtpAddress`, `ForwardingAddress`, or `DeliverToMailboxAndForward`, so `MailboxSettings.ReadWrite` does not allow you to set them. Use `Set-Mailbox` in Exchange Online PowerShell. - **Licensing:** The source shared mailbox under 50 GB does not require a license, but must not be converted to a regular mailbox during this work. ## Required permissions | Permission | Why it's needed | | --- | --- | | Exchange Administrator (or Recipient Administrator) role | Required to create distribution groups, mail contacts, and modify mailbox forwarding in Exchange Online. | | User.Read.All (Graph) | Preflight lookups to confirm the source mailbox exists and to enumerate its proxyAddresses (aliases). | | Group.Read.All (Graph) | Preflight check that the target DL mailNickname/SMTP is not already in use. | | ExchangeOnlineManagement PowerShell module | All write operations (New-DistributionGroup, New-MailContact, Set-Mailbox) are performed against Exchange Online, not Graph. | ## Ask Dex Paste the prompt into a Dex conversation. ### Prompt for IT admins ``` Create a distribution list {dl_address} (display name {dl_display_name}) with members {member_list}. For any members outside the tenant, create Mail Contacts first. Allow external senders to email the list. Then configure {source_mailbox} to auto-forward all mail to {dl_address} (keep a copy in the mailbox: {true|false}), and confirm that messages sent to its aliases (e.g. {alias_address}) also reach the DL members. Use Exchange Online PowerShell - Graph can't do this. ``` ### How an end user can ask Dex ``` Mail sent to our info@ address should go to me and two teammates instead of just one shared inbox - can you set that up? ``` ## Manual steps (admin center) Start in the [Exchange admin center](https://admin.exchange.microsoft.com) under **Recipients**. ### Step 1: Create mail contacts for any external members 1. Go to **Recipients** > **Contacts**. 2. Click **Add a mail contact**. 3. Enter display name, alias, and external email address (e.g. `person@partner.com`). 4. Save. Repeat for every external member of the DL. ### Step 2: Create the distribution list 1. Go to **Recipients** > **Groups** > **Distribution list**. 2. Click **Add a group** and choose *Distribution*. 3. **Name:** e.g. `Marketing Notifications`. **Alias:** `{dl_alias}`. **Primary SMTP:** `{dl_address}`. 4. Assign an owner (typically an admin or team lead). 5. **Add members:** select the internal users and the mail contacts created in Step 1. 6. On the *Settings* page, under **Communication**, check *Allow external senders to email this group*. 7. Review and **Create group**. ### Step 3: Confirm external-sender setting 1. Open the new group > **Settings** > **Edit delivery management**. 2. Select *Senders inside and outside of my organization*. Save. ### Step 4: Configure forwarding on the shared mailbox 1. Go to **Recipients** > **Mailboxes** and open `{source_mailbox}`. 2. On the **Mailbox** tab, scroll to **Manage email forwarding**. 3. Toggle *Forward all emails sent to this mailbox* ON. 4. Enter the DL address `{dl_address}`. 5. Decide whether to also keep a copy in the shared mailbox (*Deliver message to both forwarding address and mailbox*). 6. Save. ### Step 5: Verify alias behavior Aliases on the shared mailbox (e.g. `{alias_address}`) are accepted addresses on the same mailbox object. They do not need separate configuration. Send a test message to each alias and confirm every DL member receives it. ## Microsoft Graph API Graph is **not** the right tool to perform the write operations in this workflow. Graph can only be used for read-only preflight checks. Attempting `POST /groups` with `mailEnabled:true, securityEnabled:false` returns `Request_BadRequest`, because Exchange owns distribution list authoring. Mailbox forwarding cannot be set through Graph, because the `mailboxSettings` resource has no forwarding property. ### Preflight 1: Confirm the DL does not already exist ``` GET https://graph.microsoft.com/v1.0/groups?$filter=mailNickname eq '{dl_alias}' or mail eq '{dl_address}' ``` Expected: `value: []`. If non-empty, an object with that alias already exists. Stop and reconcile. ### Preflight 2: Confirm the source mailbox and list its aliases ``` GET https://graph.microsoft.com/v1.0/users?$filter=mail eq '{source_mailbox}'&$select=id,displayName,userPrincipalName,mail,proxyAddresses ``` Look at `proxyAddresses`: every entry prefixed `smtp:` (lowercase) is an alias, and the single `SMTP:` (uppercase) entry is the primary. Confirm `{alias_address}` is listed. ### Preflight 3: Resolve internal member UPNs ``` GET https://graph.microsoft.com/v1.0/users?$filter=userPrincipalName eq '{member1_upn}' or userPrincipalName eq '{member2_upn}'&$select=id,userPrincipalName,mail ``` ### What Graph will refuse to do - `POST /groups` to create a DL returns `Request_BadRequest`. - `POST /contacts` does not create an Exchange mail contact. Graph `/contacts` is personal contacts, not org mail contacts. - `PATCH /users/{id}/mailboxSettings` with a `forwardingAddress` property fails because the property does not exist on `mailboxSettings`. `ForwardingSmtpAddress` is an Exchange mailbox property, not a mailbox setting. For the actual writes, use the PowerShell workflow below. ## PowerShell This is the recommended way to perform every step of the workflow. It works end-to-end in a single session. ### 1. Connect ``` Install-Module ExchangeOnlineManagement -Scope CurrentUser Connect-ExchangeOnline -UserPrincipalName admin@contoso.com ``` ### 2. Create mail contacts for external members ``` New-MailContact -Name "Jane External" -ExternalEmailAddress "jane@partner.com" ``` Repeat for each external address. Internal users do not need a contact. Reference them by UPN. ### 3. Create the distribution list ``` New-DistributionGroup `    -Name "Marketing Notifications" `    -Alias "{dl_alias}" `    -PrimarySmtpAddress "{dl_address}" `    -Type Distribution `    -MemberJoinRestriction Closed `    -MemberDepartRestriction Closed ``` ### 4. Allow external senders ``` Set-DistributionGroup -Identity "{dl_address}" `    -RequireSenderAuthenticationEnabled $false ``` ### 5. Add members (internal users + mail contacts) ``` Add-DistributionGroupMember -Identity "{dl_address}" -Member "user1@contoso.com" Add-DistributionGroupMember -Identity "{dl_address}" -Member "jane@partner.com"   # resolved via the mail contact created in step 2 ``` ### 6. Configure forwarding on the shared mailbox ``` Set-Mailbox -Identity "{source_mailbox}" `    -ForwardingSmtpAddress "{dl_address}" `    -DeliverToMailboxAndForward $true   # $false = forward only, no local copy ``` ### 7. Verify ``` Get-DistributionGroup "{dl_address}" | Select DisplayName,PrimarySmtpAddress,RequireSenderAuthenticationEnabled Get-DistributionGroupMember "{dl_address}" Get-Mailbox "{source_mailbox}" | Select ForwardingSmtpAddress,DeliverToMailboxAndForward,EmailAddresses ``` Then send a test message to both `{source_mailbox}` and any alias (e.g. `{alias_address}`) and confirm all DL members receive it.