Solved

PowerShell - New-InboxRule to answer each incoming mail with a specific text

Posted on 2013-05-13
5
3,974 Views
Last Modified: 2013-05-20
Dear Experts,

We used to use PowerShell command to set InboxRule, for example forwading the incoming message to specific addresses in below syntax:

New-InboxRule -name "TestRuleForward" -mailbox "Bill.Smith@it.com" -ForwardTo 'Steve.Smith@it.com','John.Smith@it.com'

Could you please advise is it possible maybe to set a similiar rule, but which is answering each incoming message with a specific text?

thanks,
0
Comment
Question by:csehz
  • 2
  • 2
5 Comments
 
LVL 42

Expert Comment

by:sedgwick
ID: 39160703
u mean that for example, every email that comes from "Bill.Smith@it.com", you want to forward to 'Steve.Smith@it.com','John.Smith@it.com', but also reply to 'Bill.Smith@it.com' with a message?
0
 
LVL 42

Expert Comment

by:sedgwick
ID: 39160712
the basic idea is this:
Set-MailboxAutoReplyConfiguration -Identity Bill.Smith@it.com -AutoReplyState Enabled -ExternalMessage 'whatever' -InternalMessage 'whatever'

Open in new window

0
 
LVL 1

Author Comment

by:csehz
ID: 39160816
Thanks the answer,

Not exactly, the above syntax was just an example for the forwarding in using New-InboxRule, because that sure works for us.

The idea would be to set a kind of automatic reply to the sender, but which is Rule and not AutoReply.

Basically there is a case where a shared mailbox needs all mails answered back to a sender with a specific message. That can not be an AutoReply (so through Set-MailboxAutoReplyConfiguration), because that would not send back answer to the 2nd mail of the same sender. Just to his 1st one.
0
 
LVL 40

Accepted Solution

by:
Subsun earned 500 total points
ID: 39167939
If you are trying to set automatic reply with New-InboxRule then I don't think it's possible, there is no parameter for New-InboxRule command where you can specify "have server reply using a specific message". You need to use outlook for this..

Or another option is to use EWS with Powershell..
You may find a good example from following link..
http://gsexdev.blogspot.in/2012/11/creating-sender-domain-auto-reply-rule.html
0
 
LVL 1

Author Closing Comment

by:csehz
ID: 39180809
Thanks I neither found any parameter which could specify a message for New-InboxRule
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
active directory 17 35
Exchange move and fail over 17 62
Is it safe to Allow Malformed MIME? 5 12
EX2013 - track email 2 0
Following basic email etiquette rules will help you write a professional email and achieve a good, lasting impression with your contacts.
Scam emails are a huge burden for many businesses. Spotting one is not always easy. Follow our tips to identify if an email you receive is a scam.
This tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …
how to add IIS SMTP to handle application/Scanner relays into office 365.

707 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

15 Experts available now in Live!

Get 1:1 Help Now