Trouble with transport rule creation

We recently updated our environment to Exchange 2013 SP1.. So far so good, but we have come across a problem we can't seem to figure out.  In our 2010 enviornment, we were using an edge transport server to apply various legal disclaimers to our outbound email messages (based on recipient domain).  We have since deployed a 2013 edge transport server, but can't seem to get the command together that will allow us to create these rules again.  

This is the command I'm executing:

New-TransportRule -Name 'contoso.com TLS Footer' -Enabled $True -Mode Enforce -RecipientAddressMatchesPatterns '@contoso.com$' -SentToScope NotInOrganization -ApplyHtmlDisclaimerLocation Append -ApplyHtmlDisclaimerFallbackAction Reject -ApplyHtmlDisclaimerText 'The message was protected by the contoso.com TLS Connection.' 

This is the error:

New-TransportRule : A parameter was specified that isn't valid on an Edge Transport server.
At line:1 char:1
+ New-TransportRule -Name "contoso.com tls footer" -Enabled $true -Mode Enforce -Recipien ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (SentToScope:String) [New-TransportRule], ArgumentException
    + FullyQualifiedErrorId : [Server=edge,RequestId=xxxxxxxx,TimeStamp=8/17/2015 7:29:31 PM] [FailureCategory=Cmdlet-ArgumentException] 7C733186,Microsoft.Exchange.MessagingPolicies.Rules.Tasks.NewTransportRule

Any thoughts here?  I've scoured the documentation for this command and can't seem to find what I'm missing.  Why is it considering the 'SentToScope' invalid?

Thanks in advance



  • Edited by steelie Monday, August 17, 2015 8:13 PM formatting
August 17th, 2015 8:12pm

Of course.. That was part of the initial deployment of the edge transport server.  Just for background, the edge server is outside the domain on the perimeter network, and only hosts the edge transport role.  The mailbox and client access roles are hosted inside on different mail servers.  Since I don't have a GUI for edge administration anymore, I can't create the rules without powershell (which in the long run will make this easier, but I can't even get the first one created.)
  • Edited by steelie Monday, August 17, 2015 8:46 PM
Free Windows Admin Tool Kit Click here and download it now
August 17th, 2015 8:46pm

[PS] C:\temp>Get-TransportRuleAction

Name                                                    Rank
----                                                    ----
LogEvent                                                0
PrependSubject                                          1
SetSCL                                                  2
SetHeader                                               3
RemoveHeader                                            4
AddToRecipient                                          5
CopyTo                                                  6
BlindCopyTo                                             7
Disconnect                                              8
RedirectMessage                                         9
Quarantine                                              10
SmtpRejectMessage                                       11
DeleteMessage                                           12
StopRuleProcessing                                      13

-------------------------------------------------------------------

[PS] C:\temp>Get-TransportRulePredicate

Name                                                    Rank
----                                                    ----
SCLOver                                                 0
AttachmentSizeOver                                      1
MessageSizeOver                                         2
FromScope                                               3
HeaderContains                                          4
SubjectContains                                         5
FromAddressContains                                     6
SubjectOrBodyContains                                   7
AnyOfRecipientAddressContains                           8
HeaderMatches                                           9
SubjectMatches                                          10
SubjectOrBodyMatches                                    11
FromAddressMatches                                      12
AnyOfRecipientAddressMatches                            13

------------------------------------------------------------------

What am I looking for?



  • Edited by steelie Tuesday, August 18, 2015 10:37 AM
August 18th, 2015 10:36am

Hi,

These are properties that are available as parameters of the New-TransportRule and Set-TransportRule for Transport Rule conditions and actions on Edge Transport Servers.

So that's why that error will pop up.

Best Regards.

Free Windows Admin Tool Kit Click here and download it now
August 19th, 2015 5:35am

So... does this mean I can't create the rule I need for applying a footer on a per-domain basis?  If that's true, is there any particular reason this capability was removed?
August 19th, 2015 1:46pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics