I looked briefly (without being thorough) and maybe it's not possible?
How about something after the fact:

New-TransportRule `
 -Name Test `
  -FromScope InOrganization `
  -RecipientDomainIs 'XXX.com' `
  -RejectMessageReasonText 'Domain has changed from XXX.com to YYY.com.'

At least they will immediately know the mail was not sent and why.

jlc

From: [email protected] [mailto:[email protected]] On 
Behalf Of Paul Cookman
Sent: Wednesday, December 6, 2017 1:15 AM
To: [email protected]
Subject: [Exchange] Re: Auto reply email for a Domain name.


Thanks for the link, when going through the GUI there are lots or scenarios it 
doesn't allow. Have you been able to do man auto reply for a business and still 
allow delivery using the Powershell? I understand I will need to play with the 
command to see if it is possible but wondered if anyone has actually done this.



Regards,



Paul.



________________________________
From: [email protected]<mailto:[email protected]> 
<[email protected]<mailto:[email protected]>> on 
behalf of Joseph L. Casale 
<[email protected]<mailto:[email protected]>>
Sent: 04 December 2017 13:03
To: [email protected]<mailto:[email protected]>
Subject: [Exchange] RE: Auto reply email for a Domain name.


Transport rule with a regex...

https://technet.microsoft.com/en-us/library/bb125138(v=exchg.160).aspx
New-TransportRule<https://technet.microsoft.com/en-us/library/bb125138(v=exchg.160).aspx>
technet.microsoft.com
This cmdlet is available in on-premises Exchange Server 2016 and in the 
cloud-based service. Some parameters and settings may be exclusive to one ...







From: [email protected]<mailto:[email protected]> 
[mailto:[email protected]] On Behalf Of Paul Cookman
Sent: Monday, December 4, 2017 5:14 AM
To: [email protected]<mailto:[email protected]>
Subject: [Exchange] Auto reply email for a Domain name.



Hi,



Can anyone suggest a way I can send an auto reply message for the whole ORG 
when sending to one particular domain? I still want the messages to be 
delivered, this is to warn senders that this particular domain will soon be 
going.



Any ideas?

Reply via email to