Avatar of solvers
solvers
 asked on

Exchange 2010 Inbox Server Rules with Powershell

Hi folks,

I have the following scenario with Exchange 2010:

I have a user "Bob" who has two e-mails, "Bob@domain.com" and "Bobby@domain.com". I want to setup a server rule whereby any e-mails sent to "Bob@domain.com" go into a separate folder on arrival, with e-mails to "Bobby@domain.com" 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?

Cheers,

Solvers
Exchange

Avatar of undefined
Last Comment
solvers

8/22/2022 - Mon
Chris

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.
solvers

ASKER
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 "Bob@domain.com" 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.

Cheers,

Solvers
ASKER CERTIFIED SOLUTION
Dan Arseneau

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Akhater

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  "Bobby@domain.com" 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

All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
solvers

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

Regards,

Solvers