Setting an auto reply for a distribution group

First, let’s get one thing out of the way – distribution groups cannot send automatic responses by themselves.

Using Reject the message with the explanation / enhanced status code transport rule actions to send auto-replies for a distribution group is not a good idea either. Firstly, because it defeats the whole purpose of maintaining a distribution group (the original message is blocked, thus not reaching the members of the group). Secondly, because the automatic messages sent by the actions are very very bare-bones (as you can see here).

Autoreply for distribution group

The most common solution to these grievances is a shared mailbox with a have server reply using a specific message rule underneath it.

Note: There is another way, that does not involve creating a new shared mailbox. It requires using a 3rd party solution such as CodeTwo Exchange Rules Pro. I discuss it in this section of the article.

Here is how to set the whole mechanism up:

  1. Save the problem distribution group’s most essential properties:LegacyExchangeDN(attribute used in Outlook’s and OWA’s auto-complete cache to route messages)You can get it by running one of the below scripts (depending on the type of the group):

    Get-DistributionGroup “<distribution group’s id>” | Select LegacyExchangeDN

    Get-DynamicDistributionGroup “<dynamic distribution group’s id>” | Select LegacyExchangeDN
    autoreply for distribution group select legacyexchangeDN
    List of membersTo export the list to a CSV file run:

    Get-DistributionGroupMember “<distribution group’s id>” -ResultSize Unlimited | Select alias | Export-CSV -Path “<target CSV file path>”
    autoreply for distribution group list of members
    To export members of a dynamic distribution group use the second script from the top provided in this article.As well as any other properties you may want.For example, you can easily export your dynamic distribution group’s primary properties by running:

    Get-DynamicDistributionGroup “<dynamic distribution group’s id>” | select name,includedrecipients,recipientfilter | Export-Csv "<target CSV file path>"
  2. Delete the problem distribution group.
  3. Create a new shared mailbox using the deleted distribution group’s SMTP address and grant yourself full access permissions to the mailbox.
    autoreply for distribution group new distribution group
  4. Update the shared mailbox’s LegacyExchangeDN with the saved distribution group’s LegacyExchangeDN (as I mentioned earlier, this is necessary because of Outlook and OWA routing).You can easily do this via ADUC, by editing the LegacyExchangeDN entry in Attribute Editor.
    autoreply for distribution group attribute editor
  5. Create a clone of the old distribution group using a new SMTP address.(unless you want to abandon distribution groups altogether in this case and use e.g. a transport rule or Outlook rule which sends copies of emails to ex-members of the group)
    autoreply for distribution group new group
  6. Create an Outlook profile for the shared mailbox.To do this go to Control Panel, Mail, Show Profiles…, choose the Prompt for a profile to be used, click Add…, provide a name for the new profile, click OK, and complete the account creation wizard (leaving the password boxes empty).
    autoreply for distribution group new profileautoreply for distribution group add account
  7. Run Outlook in the shared mailbox’s profile.
    autoreply for distribution group choose profile
    At this point you could set up a standard Automatic Reply for the mailbox. However, this would limit the number of automatic responses to only one per sender (see this Microsoft article for details). Also, when sending messages to the shared mailbox, users would keep seeing an “Automatic reply” MailTip suggesting that the shared mailbox “recipient” is absent.That’s why I recommend setting up the auto-response using Outlook rules, like so:
  8. Go to File, Manage Rules & Alerts, New Rule…
    autoreply for distribution group 8 outlook new rule
  9. In the Rules Wizard select Apply rule on messages I receive and click Next
    autoreply for distribution group 9 rules wizard
  10. Configure the rule’s conditions per your needs or leave the conditions empty to apply the rule to all messages received by the shared mailbox, and click Nextautoreply for distribution group 10 setting conditions
  11. In the actions’ configuration step, select the below and click Next.
    1. Have server reply using a specific message and create the message template that will be used as the auto-reply (the template can include attachments).autoreply for distribution group 11 setting conditions
      Note: Regardless how you fill out the TO, CC and BCC fields, the whole template will be sent to the original sender
    2. An action that will send the message to the new distribution group (e.g. forward it to or redirect it to)autoreply for distribution group 11b server reply
  12. Configure exceptions or leave this step blank and click Next.autoreply for distribution group 13 exceptions
  13. Complete the last step and click Finish.
    autoreply for distribution group 13 finish
  14. Test the setup by sending an email to the shared mailbox’s address.
    autoreply for distribution group 14 test


Autoreply for a distribution group using CodeTwo Exchange Rules Pro

To set up an auto-reply mechanism for a distribution group using CodeTwo Exchange Rules Pro, follow these steps:

  1. Create a new rule in CodeTwo Exchange Rules Pro
    autoreply for distribution group ER PRO 1
  2. Configure at least one condition, so that the rule will catch emails sent to the distribution group. For example: Recipient – matches AD user – <your distribution group>
    autoreply for distribution group ER PRO 2
  3. Configure an Auto respond action.
    autoreply for distribution group ER PRO 3
  4. Save changes.

To download the free 30-day CodeTwo Exchange Rules Pro trial, go to this page.

Learn more about CodeTwo Exchange Rules Pro


Further reading Converting distribution groups to mailboxes

AskME4Tech: Exchange Server X500 Address An Amazing Thing to Know

Display members of dynamic distribution groups using PowerShell

Setting an auto reply for a distribution group by

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>