Autoreply Outlook Rule

Rising Flight 3,711 Reputation points
2021-09-29T20:37:41.573+00:00

Hi All

i am using exchange 2016 hybrid environment, i have an onprem DL(d1l@Company portal .com) and i want to setup autoreply for it for external and internal senders. So i have created remote shared mailbox from onprem(shared1@Company portal .com) and i have added it to the DL.

For the DL i have set SendOofMessageToOriginatorEnabled to $true

Set-DistributionGroup dl1@Company portal .com -SendOofMessageToOriginatorEnabled $true

if i create an outlook rule will it work?
for internal senders will the below outlook rule work for me, how do i setup for external senders.
Apply rule on messages i receive
with specific words in the message header
X-MS-Exchange-Organization-AuthAs: Internal
have server reply using a specfic meesage.

Microsoft Exchange Online Management
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
4,162 questions
Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,331 questions
0 comments No comments
{count} votes

Accepted answer
  1. KyleXu-MSFT 26,206 Reputation points
    2021-10-04T08:03:42.233+00:00

    @Rising Flight

    Yes, you could use it. You can also use "X-MS-Exchange-CrossTenant-FromEntityHeader: Internet" to filter the external sender.


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

4 additional answers

Sort by: Most helpful
  1. KyleXu-MSFT 26,206 Reputation points
    2021-09-30T05:57:39.877+00:00

    @Rising Flight

    Distribution group doesn't supported OOF. You need to enable OOF for distribution group member.

    If you don't want to enable OOF for all group members, you could add an additional mailbox to this group, then enable OOF for this mailbox. (In the OOF message, tell recipient this mailbox used to send OOF for other group members)


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  2. Rising Flight 3,711 Reputation points
    2021-09-30T16:36:26.697+00:00

    i want to setup autoreply for the DL and so i have added shared mailbox to the DL.

    for the DL i have used this syntax. Set-DistributionGroup dl1@Company portal .com -SendOofMessageToOriginatorEnabled $true

    Now i want to setup autoreply to this shared mailbox, anyone who triggers emails to the dL, this sharedmailbox should trigger autoreply

    for internal senders will the below outlook rule work for me, how do i setup for external senders.
    Apply rule on messages i receive
    with specific words in the message header
    X-MS-Exchange-Organization-AuthAs: Internal
    have server reply using a specfic meesage.

    0 comments No comments

  3. KyleXu-MSFT 26,206 Reputation points
    2021-10-01T07:49:51.39+00:00

    @Rising Flight

    You cannot configure OOF for this shared mailbox from EMS. You need to add your mailbox to the Full Access list of this shared mailbox, then open this shared mailbox from OWA and configure OOF for this shared mailbox.


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  4. Rising Flight 3,711 Reputation points
    2021-10-02T08:00:11.43+00:00

    Kyle
    you did not get me i want to set Autorely for the DL. So i have created a shared mailbox and i have made it a member of the DL. and for the DL i have used the below syntax. Set-DistributionGroup dl1@Company portal .com -SendOofMessageToOriginatorEnabled $true
    Now i want to set the outlook rule since autoreply on the shared mailbox will not work when added to the dL.

    i was also referring the below article
    https://support.microsoft.com/en-us/office/use-rules-to-create-an-out-of-office-message-9f124e4a-749e-4288-a266-2d009686b403?ui=en-US&rs=en-US&ad=US

    if i create a below outlook rule for the shared mailbox it will work for internal senders not sure for the external senders(X-MS-Exchange-Organization-AuthAs: Anonymous will work?)

    Apply rule on messages i receive
    with specific words in the message header
    X-MS-Exchange-Organization-AuthAs: Internal
    have server reply using a specific message.

    For External Senders will the below work?
    X-MS-Exchange-Organization-AuthAs: Anonymous

    0 comments No comments