Solved

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

Posted on 2013-05-13
5
4,175 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

The problems with reply email signatures

Do you wish that you could place an email signature under a reply? Well, unfortunately, you can't. That great Exchange/Office 365 signature you've created will just appear at the bottom of an email chain. What a pain! Is there really no way to solve this? Well, there might be...

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Marketers need statistics and metrics like everybody else needs oxygen. In this article we explain how to enable marketing campaign statistics for Microsoft Exchange mail.
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
The basic steps you have just learned will be implemented in this video. The basic steps are shown to configure an Exchange DAG in a live working Exchange Server Environment and manage the same (Exchange Server 2010 Software is used in a Windows Ser…

910 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

24 Experts available now in Live!

Get 1:1 Help Now