New-SendConnector
Applies to: Exchange Server 2007 SP1, Exchange Server 2007 SP2, Exchange Server 2007 SP3
Use the New-SendConnector cmdlet to create a new Send connector on a computer that has the Hub Transport server role or the Edge Transport server role installed.
Syntax
New-SendConnector -Name <String> -AddressSpaces <MultiValuedProperty> [-AuthenticationCredential <PSCredential>] [-Comment <String>] [-Confirm [<SwitchParameter>]] [-ConnectionInactivityTimeOut <EnhancedTimeSpan>] [-Custom <SwitchParameter>] [-DNSRoutingEnabled <$true | $false>] [-DomainController <Fqdn>] [-DomainSecureEnabled <$true | $false>] [-Enabled <$true | $false>] [-Force <SwitchParameter>] [-ForceHELO <$true | $false>] [-Fqdn <Fqdn>] [-IgnoreSTARTTLS <$true | $false>] [-Internal <SwitchParameter>] [-Internet <SwitchParameter>] [-IsScopedConnector <$true | $false>] [-MaxMessageSize <Unlimited>] [-Partner <SwitchParameter>] [-Port <Int32>] [-ProtocolLoggingLevel <None | Verbose>] [-RequireTLS <$true | $false>] [-SmartHostAuthMechanism <None | BasicAuth | BasicAuthRequireTLS | ExchangeServer | ExternalAuthoritative>] [-SmartHosts <MultiValuedProperty>] [-SourceIPAddress <IPAddress>] [-SourceTransportServers <MultiValuedProperty>] [-TemplateInstance <PSObject>] [-Usage <Custom | Internal | Internet | Partner>] [-UseExternalDNSServersEnabled <$true | $false>] [-WhatIf [<SwitchParameter>]]
New-SendConnector -Name <String> [-AuthenticationCredential <PSCredential>] [-Comment <String>] [-Confirm [<SwitchParameter>]] [-ConnectionInactivityTimeOut <EnhancedTimeSpan>] [-Custom <SwitchParameter>] [-DNSRoutingEnabled <$true | $false>] [-DomainController <Fqdn>] [-DomainSecureEnabled <$true | $false>] [-Enabled <$true | $false>] [-Force <SwitchParameter>] [-ForceHELO <$true | $false>] [-Fqdn <Fqdn>] [-IgnoreSTARTTLS <$true | $false>] [-Internal <SwitchParameter>] [-Internet <SwitchParameter>] [-LinkedReceiveConnector <ReceiveConnectorIdParameter>] [-MaxMessageSize <Unlimited>] [-Partner <SwitchParameter>] [-Port <Int32>] [-ProtocolLoggingLevel <None | Verbose>] [-RequireTLS <$true | $false>] [-SmartHostAuthMechanism <None | BasicAuth | BasicAuthRequireTLS | ExchangeServer | ExternalAuthoritative>] [-SmartHosts <MultiValuedProperty>] [-SourceIPAddress <IPAddress>] [-SourceTransportServers <MultiValuedProperty>] [-TemplateInstance <PSObject>] [-Usage <Custom | Internal | Internet | Partner>] [-UseExternalDNSServersEnabled <$true | $false>] [-WhatIf [<SwitchParameter>]]
Detailed Description
This cmdlet creates a new Send connector. To be prompted for the required parameters of a new Send connector, enter New-SendConnector. After this task is completed, a Send connector is created.
To run the New-SendConnector cmdlet, the account you use must be delegated the Exchange Server Administrator role and local Administrators group for the target server.
To run the New-SendConnector cmdlet on a computer that has the Edge Transport server role installed, you must log on by using an account that is a member of the local Administrators group on that computer.
For more information about permissions, delegating roles, and the rights that are required to administer Microsoft Exchange Server 2007, see Permission Considerations.
Parameters
Parameter | Required | Type | Description |
---|---|---|---|
AddressSpaces |
Required |
Microsoft.Exchange.Data.MultiValuedProperty |
This parameter is required unless this connector is linked to a Receive connector. If a linked Receive connector is specified by using the LinkedReceiveConnector parameter, the value of the AddressSpaces parameter must be
If you specify the address space type or the address space cost, you must enclose the address space in double quotation marks (
You may specify multiple address spaces by separating the address spaces with commas, as follows, for example: If you specify a non-SMTP address space type on a Send connector that is configured on a Hub Transport server, the following settings are required on the Send connector:
Note Although you can configure non-SMTP address spaces on a Send connector on a Hub Transport server, the Send connector uses SMTP as the transport mechanism to send messages to other messaging servers. Foreign connectors on Hub Transport servers are used to send messages to local messaging servers, such as third-party fax gateway servers, which don't use SMTP as their primary transport mechanism. For more information, see Foreign Connectors. |
Name |
Required |
System.String |
This parameter is the administrator-supplied name of the connector. You must enclose the Name parameter in double quotation marks if the name contains spaces as follows, for example: |
AuthenticationCredential |
Optional |
System.Management.Automation.PSCredential |
This parameter requires the creation and passing of a credential object. This credential object is created by using the Get-Credential cmdlet. For more information about the Get-Credential cmdlet, type |
Comment |
Optional |
System.String |
You must enclose the Comment parameter in double quotation marks as follows, for example: |
Confirm |
Optional |
System.Management.Automation.SwitchParameter |
The Confirm parameter causes the command to pause processing and requires you to acknowledge what the command will do before processing continues. You don't have to specify a value with the Confirm parameter. |
ConnectionInactivityTimeOut |
Optional |
Microsoft.Exchange.Data.EnhancedTimeSpan |
This parameter specifies the maximum time that an idle connection can remain open. The default value is 10 minutes. To specify a value, enter the value as a time span: dd.hh:mm:ss, where d = days, h = hours, m = minutes, and s = seconds. The valid input range for this parameter is |
Custom |
Optional |
System.Management.Automation.SwitchParameter |
This parameter specifies the
For more information about Send connector usage types, permissions, and authentication methods, see Send Connectors. |
DNSRoutingEnabled |
Optional |
System.Boolean |
Valid values for the DnsRoutingEnabled parameter are |
DomainController |
Optional |
Microsoft.Exchange.Data.Fqdn |
To specify the fully qualified domain name (FQDN) of the domain controller that writes this configuration change to the Active Directory directory service, include the DomainController parameter on the command. The DomainController parameter is not supported on computers that run the Edge Transport server role. The Edge Transport server role reads and writes only to the local ADAM instance. |
DomainSecureEnabled |
Optional |
System.Boolean |
This parameter is part of the process to enable mutual Transport Layer Security (TLS) authentication for the domains that are serviced by this Send connector. Mutual TLS authentication will function correctly only if the following conditions are true:
The wildcard character (*) is not supported in domains that are configured for mutual TLS authentication. The same domain must also be defined on the corresponding Receive connector, and in the value of the TLSReceiveDomainSecureList parameter in the Get-TransportConfig cmdlet. The default value for DomainSecureEnabled is
The default value for DomainSecureEnabled is
|
Enabled |
Optional |
System.Boolean |
Valid values for this parameter are |
Force |
Optional |
System.Management.Automation.SwitchParameter |
This parameter suppresses the warning or confirmation messages that appear during specific configuration changes. |
ForceHELO |
Optional |
System.Boolean |
Valid values for this parameter are |
Fqdn |
Optional |
Microsoft.Exchange.Data.Fqdn |
This parameter specifies the FQDN that is used as the source server for connected messaging servers that use the Send connector to receive outgoing messages. The value of this parameter is displayed to connected messaging servers whenever a source server name is required, as in the following examples:
The default value of the Fqdn parameter is Note If the Send connector is configured on a Hub Transport server that also has the Mailbox server role installed, any value that you specify for the Fqdn parameter is not used. Instead, the FQDN of the server that is displayed by using the Get-ExchangeServer cmdlet is always used. |
IgnoreSTARTTLS |
Optional |
System.Boolean |
This parameter specifies whether to ignore the StartTLS option that is offered by a remote sending server. This parameter is used with remote domains. This parameter must be set to |
Internal |
Optional |
System.Management.Automation.SwitchParameter |
This parameter specifies the
For more information about Send connector usage types, permissions, and authentication methods, see Send Connectors. |
Internet |
Optional |
System.Management.Automation.SwitchParameter |
This parameter specifies the
For more information about Send connector usage types, permissions, and authentication methods, see Send Connectors. |
IsScopedConnector |
Optional |
System.Boolean |
This parameter controls the availability of the connector to other Hub Transport servers. When the value of this parameter is |
LinkedReceiveConnector |
Optional |
Microsoft.Exchange.Configuration.Tasks.ReceiveConnectorIdParameter |
This parameter forces all messages that are received by the specified Receive connector out through this Send connector. The value of LinkedReceivedConnector can use any of the following identifiers to specify the Receive connector:
When you use the LinkReceiveConnector parameter with the New-SendConnector cmdlet, you must also use the following parameters with the specified values:
When you use the LinkedReceiveConnector parameter, you must not use the AddressSpace parameter. |
MaxMessageSize |
Optional |
Microsoft.Exchange.Data.Unlimited |
This parameter specifies the maximum size of a message that can pass through a connector. The default value is
Unqualified values are treated as bytes. Values that are entered in bytes are rounded up to nearest kilobyte. For example, |
Partner |
Optional |
System.Management.Automation.SwitchParameter |
This parameter specifies the
For more information about Send connector usage types, permissions, and authentication methods, see Send Connectors. |
Port |
Optional |
System.Int32 |
The valid input range for this parameter is an integer between |
ProtocolLoggingLevel |
Optional |
Microsoft.Exchange.Data.ProtocolLoggingLevel |
This parameter enables or disables protocol logging for the specified Send connector. A value of |
RequireTLS |
Optional |
System.Boolean |
This parameter specifies whether all messages that are sent through this connector must be transmitted by using TLS. The default value is |
SmartHostAuthMechanism |
Optional |
Microsoft.Exchange.Data.Directory.SystemConfiguration.SmtpSendConnectorConfig+AuthMechanisms |
This parameter is used during authentication with a remote server. This parameter is used only when a smart host is configured and the DNSRoutingEnabled parameter is set to |
SmartHosts |
Optional |
Microsoft.Exchange.Data.MultiValuedProperty |
This parameter is required if you set the DnsRoutingEnabled parameter to |
SourceIPAddress |
Optional |
System.Net.IPAddress |
This parameter specifies the local IP address to use as the endpoint for an SMTP connection to a remote messaging server. The default IP address is |
SourceTransportServers |
Optional |
Microsoft.Exchange.Data.MultiValuedProperty |
This parameter specifies the names of the Hub Transport servers that can use this Send connector. You can specify the names of more than one Hub Transport server by separating the names with commas. This parameter is not valid for Send connectors that are configured on Edge Transport servers. |
TemplateInstance |
Optional |
System.Management.Automation.PSObject |
When an existing object is supplied to this parameter, the command uses the configuration of that object to create an identical copy of the object on a local or target server. |
Usage |
Optional |
Microsoft.Exchange.Management.SystemConfigurationTasks.NewSendConnector+UsageType |
This parameter can be used to specify the default permissions and authentication methods that are assigned to the Send connector. The valid values for this parameter are as follows: If you use the Usage parameter, you can't use any of the following parameters:
For more information about Send connector usage types, permissions, and authentication methods, see Send Connectors. |
UseExternalDNSServersEnabled |
Optional |
System.Boolean |
This parameter specifies whether this Send connector should use the external Domain Name System (DNS) list that is specified by using the ExternalDNSServers parameter of the Set-TransportServer cmdlet. The default value is |
WhatIf |
Optional |
System.Management.Automation.SwitchParameter |
The WhatIf parameter instructs the command to simulate the actions that it would take on the object. By using the WhatIf parameter, you can view what changes would occur without having to apply any of those changes. You don't have to specify a value with the WhatIf parameter. |
Input Types
Return Types
Errors
Error | Description |
---|---|
|
|
Example
The first example shows the command that creates a new Send connector that sends e-mail messages over the Internet. The example shows the minimum parameters that are required to create a Send connector. The address space is restricted to send messages only to the Contoso.com domain and the Microsoft.com domain.
The second example shows the commands that create a new Send connector that sends e-mail messages to Contoso.com. The Contoso.com e-mail server requires that the local Exchange 2007 server authenticate with it to submit e-mail messages. To configure the Send connector to use authentication, you must first run the Get-Credential command and assign it to a variable. When you run the Get-Credential command, the command asks for the username and password of the account that is used during authentication with the Contoso.com e-mail server.
In the second example, the Get-Credential cmdlet is assigned to the $CredentialObject variable. After the authentication credentials are assigned to the $CredentialObject variable, the new Send connector can be created by using the New-SendConnector cmdlet. The $CredentialObject variable is passed to the AuthenticationCredential parameter. In addition to setting the credentials, the SmartHostAuthMechanism parameter must be set to BasicAuth
to instruct the Send connector to authenticate with the Contoso.com e-mail server by using the supplied credentials.
New-SendConnector -Name Test -AddressSpaces contoso.com,microsoft.com
$CredentialObject = Get-Credential
New-SendConnector -Name "Secure E-Mail to Contoso.com" -AddressSpaces contoso.com -AuthenticationCredential $CredentialObject -SmartHostAuthMechanism BasicAuth