How to set up email auto-responder on Microsoft Exchange Server side

[Update]: This blog post was updated on October 16, 2017.

Exchange Server administrators are often forced to deal with the problem of setting up an auto-responder directly on the server without the need of configuring anything on the client machines. It often happens that a given Active Directory group or selected users are not available to senders at specific hours or days. In that case, an automatic reply informing that a given addressee is not able to respond at the moment is needed. The thing is that configuring a separate out-of-office message on every end-user PC individually is in most cases impossible. Although Exchange Server doesn’t have a robust built-in auto-responder mechanism, there are some features which you could use as auto-replies set on the server side.

Auto-responder on Exchange 2016, 2013 and 2010

Options available in Exchange Admin Center aren’t that straightforward if you need to set up an automatic reply for a mailbox. In Exchange 2010, the option that can serve as an auto-reply is Send rejection message to sender with enhanced status code and in Exchange 2013/2016, the action is Reject the message and include explanation (Exchange Admin Center > mail flow > rules). These actions will send a non-delivery reports to the original senders with the explanation text of your choice.

Undeliverable notification

When you set up this action on a recipient’s mailbox, the original message isn’t delivered to the original recipient.

Set up auto reply via PowerShell

Exchange Server 2016, 2013 and 2010 allow you to set up automatic replies for specific mailboxes by using the following PowerShell cmdlet.

Set-MailboxAutoReplyConfiguration

An auto reply message can be configured for both internal and external emails. The command line would be like this:

Set-MailboxAutoReplyConfiguration -Identity [email protected] -AutoReplyState Enabled -InternalMessage "Here put a message text you want for internal auto replies." -ExternalMessage "Here put a message text you want for external auto replies."

In this case, all messages sent to that mailbox will be successfully delivered.

Exchange Server 2007 ’s native auto responder

Exchange Server 2007 doesn’t have a real built in auto-responder feature. Of course there are some mechanisms which you could adapt for that purpose, but all in all, they weren’t meant to be used as real auto-replies.

Basically, there are two things which you can do in Hub Transport (Exchange Management Console > Organization Configuration > Hub Transport > New Transport Rule) to set up a sort of auto-reply on Exchange Server side:

1. Use the bounce message action as a short auto-reply (New Transport Rule > Actions).

or

2. Redirect/forward messages sent to a given user or Active Directory group to another email address (New Transport Rule > Actions) with an auto-responder configured in Outlook (Out of Office Assistant).

These options will work for you in a way but at the same time, they have some big disadvantages.

The first method has the biggest limitations due to the fact that the bounce message can only be 79 characters long. It means that you won’t be able to construct a decent auto-reply using so little space. What is more, the sender will get this message as a part of a bigger delivery error report which doesn’t look as an out-of-office message at all.

Bounce message sent by Exchange Server

The second option is definitely a way better choice, but still, the auto-reply is sent from a fixed email address (e.g. [email protected]). It means that the sender, who sends a message for instance to John, won’t get the auto-reply directly from him, but from the address where the Out of Office Assistant was configured on. In some cases it is acceptable, but still, it is not the kind of auto-responder we originally wanted.

CodeTwo Exchange Rules Pro’s auto-responder for Exchange Server

If you want to configure auto-replies on the server side exactly the way you want it and with almost no limitations, you have to use a third party tool like CodeTwo Exchange Rules Pro, which offers features not offered by native mail flow rules.

CodeTwo Exchange Rules Pro is a powerful email management console that is designed to simplify work of Exchange Server administrators. Above all, it allows you to create server-sided rules that cover such important tasks as email rerouting, forwarding, sensitive content control, attachment compressing, email signatures and disclaimers and many more. But most importantly, the program lets you also create auto-responders on the server side in an easy and intuitive way.

How to create a server-sided automatic reply on Exchange using CodeTwo Exchange Rules Pro

To create an auto-responder rule in CodeTwo Exchange Rules Pro you have to begin with creating a new rule in the left pane of the program’s main window. Press Add and enter the rule’s name (e.g. “Autoresponder”).

Add new rule in CodeTwo Exchange Rules Pro

After the rule has been created, you have to specify the conditions on which your auto-reply will be sent. To do this, go to the Conditions tab. CodeTwo Exchange Rules Pro gives you many possibilities in that field.

Set up conditions in CodeTwo Exchange Rules Pro.

Once you have chosen the correct conditions, you can proceed to the Actions tab. Our goal is to create an auto-responder rule, so click the Add button in the Actions tab and chose the Auto respond action.

Selected actions in CodeTwo Exchange Rules Pro

You can now edit the template of the auto-reply which will be sent to senders. Note that CodeTwo Exchange Rules Pro offers advanced template editing options and enables composing the message in HTML or/and plain text, using dynamic Active Directory placeholders, adding attachments and many more. These options guarantee that the sender will receive a professionally looking reply that contains all the necessary information.

Configure your auto respond action in CodeTwo Exchange Rules Pro.

And that’s it. After saving the changes, the rule will be active and your auto-reply will be sent to senders accordingly to the settings you have previously chosen. Additionally, you can edit the exceptions of your auto-responder rule or add a timestamp option – it’s up to you.

Loop protection in CodeTwo Exchange Rules Pro

There’s one more thing worth mentioning. Whenever you decide to use auto-responders, there’s always a threat that the person on the other side has also an auto-reply configured on his or her email account. If so, an automatic message sent to that person will initiate an endless loop of auto-replies exchanged between these two accounts.

CodeTwo programmers have foreseen such situation. They have equipped CodeTwo Exchange Rules Pro with a smart loop protector, which limits the number of auto-replies sent in a specific period of time to the value chosen by the administrator.

Loop protection in CodeTwo Exchange Rules Pro

Consider using this option by applying auto responders, as looped messages can stop users’ inboxes up and affect the email flow on your server.

The evaluation version of CodeTwo Exchange Rules Pro is available on this website.

Suggested reading

Tools for Microsoft 365

12 thoughts on “How to set up email auto-responder on Microsoft Exchange Server side


    • If you set up autoresponder in CodeTwo Exchange Rules Pro, you can configure the loop protection option to send only one email to a certain email address per 30 days.

  1. Hi
    In the Auto respond action in the Sender field I typed the email address manually. In the body, I would like to insert AD attribute {Display name}. It did not works.
    When I use {Original recipient} as sender everything is ok.
    Why it did not work?

    • Hi Tomasz,
      The auto respond action supports only the original recipient’s AD placeholders. Since you need to have a fixed Sender of the autoresponder message, you should also be able to use fixed contact details in the autoresponder.
      It would help a lot if you could specify what exacly you want to achieve in this scenario, I might be missing the point here.

  2. Is it possible for the autoresponse message to be stored in the autoresponding users Sent Items folder? We would like to retain a copy of the autoreply for legal retention reasons.

  3. Hi,

    Whether I can setup or set a rule to send an auto reply from noreply email id.

    Example –

    I will receive the mails from out side vendors to [email protected], once I received the email, I need to send the acknowledge Thank You mail from [email protected].

    Can this be set.

    Thanks
    Prabhu

  4. Can you set up an autoresponder filter/rule so that it only sends a reply to messages that either had a valid SPF/DKIM or other email validation mechanism, or at least it did not fail such a rule?

    That would be important, to not annoy forged senders from spam with unnecessary autoresponder files.

    • Hi Mike,

      If you are already using an SPF/DKIM validator on your server, then Exchange’s Transport Rules will let you pick out validated emails based on headers. The condition you will want to use is ‘when the message header contains text patterns’. An example setting would be – Message header: Authentication-results; Text patterns: spf: pass, dkim: pass.

      As I mention in my article, the “autoreply” option offered natively in Exchange is poor. So if you wanted to use CodeTwo Exchange Rules Pro to autorespond to the verified emails, you would have to combine it with Transport Rules, i.e.: use Transport Rules to tag emails based on authentication info in their headers (more on Exchange Transport Rules: https://www.codetwo.com/admins-blog/email-rules-on-exchange-server-explained/?sts=3861), and have CodeTwo Exchange Rules Pro respond only to emails based on the tag (E.g. using the ‘Subject matches/contains’ condition: https://www.codetwo.com/userguide/exchange-rules-pro/subject.htm?sts=3861).

      Hope this helps,
      Adam

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>

*

*

CodeTwo sp. z o.o. sp. k. is a controller of your personal data.
See our Privacy Policy to learn more.