Exchange 2010 Inbox Server Rules with Powershell

Posted on 2011-10-04
Last Modified: 2012-05-12
Hi folks,

I have the following scenario with Exchange 2010:

I have a user "Bob" who has two e-mails, "" and "". I want to setup a server rule whereby any e-mails sent to "" go into a separate folder on arrival, with e-mails to "" just going into the inbox as usual.

I've been trying to use Powershell commands to get this working but I've so far failed dismally. Does anyone know what powershell command I need to use to get this to work?


Question by:solvers
    LVL 12

    Expert Comment

    Is there a specific reason you want to do this using powershell? You'd save a lot of time and effort just setting these rules up in outlook.

    Author Comment

    Hi there,

    Thats what I tried first, when setup these rules in Outlook 2007 I selected "Black rule", "Check messages on arrival" then "with specific words in the recipients address". I'd then search for the string "" then set it to filter into another folder. I couldn't find another way to differentiate between e-mail addresses, for example if you use "sent to people or distribution list" it only shows me the useres in the GAL, not aliases. Anyway, this rule didn't work. Also when setting it up this way, it sets it up as a client only rule, and I want it to be a server rule.

    If anyone knows of another way I can do this successfully through Outlook that would suffice.


    LVL 9

    Accepted Solution

    I think if you setup a Transport Rule in Exchange that first checks for a string in the Recipients Address then Prepends something in the Subject line, then an Outlook rule that checks for this entry in the Subject will be a server-side rule.
    LVL 49

    Expert Comment

    by 2 email addresses you mean aliases for the same mailbox right ?

    then this will not work in anyway, exchange will always resolve both emails to the GAL name so a rule won't be able to differentiate between them

    what you should do is
    1) remove  "" from the alias list
    2) create a new mailbox for bobby
    3) forward the mailbox of bobby to the mailbox of bob
    4) sent the rule in outlook based on sent to


    Author Comment

    Thankyou, I will test these suggestions out in order over the weekend and get back to you all.



    Featured Post

    How does your email signature look on mobiles?

    Do your employees use mobile devices to reply to emails? With mobile becoming increasingly important to the business world, it is in your best interest to make sure that your email signature looks great across all types of devices.

    Join & Write a Comment

    "Migrate" an SMTP relay receive connector to a new server using info from an old server.
    Local Continuous Replication is a cost effective and quick way of backing up Exchange server data. The following article describes the steps required to configure Local Continuous Replication. Also, the article tells you how to restore from a backup…
    In this video we show how to create an email address policy in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.:  First we need to log into the Exchange Admin Center. Navigate to the Mail Flow…
    This video discusses moving either the default database or any database to a new volume.

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    23 Experts available now in Live!

    Get 1:1 Help Now