Forum

Exchange 2013 recei...
 
Bildirimler
Hepsini Temizle

Exchange 2013 receive connector

5 Yazılar
3 Üyeler
0 Reactions
1,120 Görüntüleme
(@seydaucak)
Gönderiler: 52
Estimable Member
Konu başlatıcı
 

Merhaba,

4 adet cas sunucumuz var. Şimdi 5. yi kurduk. diğer caslarda bulunan receive connectorleri yenisine nasıl aktarabilirim? Bir sürü relay connector ümüz bulunuyor hepsini el ile yazmak gerçekten zor. Yardımcı olabilecek abilerimden cevap bekliyorum teşekkürler.

 
Gönderildi : 15/12/2015 14:22

(@seydaucak)
Gönderiler: 52
Estimable Member
Konu başlatıcı
 

Bilen kimse yok mu??

 
Gönderildi : 15/12/2015 16:03

(@bugrakeskin)
Gönderiler: 5088
Illustrious Member
 

Merhaba,

2 saate cevap verilmeyebilir. 

 

Receive connector u son cas sunucusunda oluşturun, permission ve authentication ayarlarını yapın,

Exchange Shell açın ve aşağıda ki komutu uygulayın

Get-ReceiveConnector "MevcutCASReceiveConnectorIsmi" |fl RemoteIPRanges

Yukarıda ki komutta relay IP ler alt alta gelecektir. Bir excel'de hepsinin arasına virgül koyarak ayırın.

Örneğin: 192.168.1.10,172.17.1.10,10.0.0.3

Exchange Shell açın

Set-ReceiveConnector "ReceiveConnectorIsmi" -RemoteIPRanges "192.168.1.10,172.17.1.10,10.0.0.3"

 
Gönderildi : 15/12/2015 16:10

(@seydaucak)
Gönderiler: 52
Estimable Member
Konu başlatıcı
 

230 adet ip var malesef olmuyor çok zor. Şöyle birşey buldum .ps1 olarak çalıştırılıyormuş.

 

SYNOPSIS
Copies, saves or restores receive connector information on Exchange 2010 servers

Michel de Rooij
[email protected]
http://eightwone.com

THIS CODE IS MADE AVAILABLE AS IS, WITHOUT WARRANTY OF ANY KIND. THE ENTIRE
RISK OF THE USE OR THE RESULTS FROM THE USE OF THIS CODE REMAINS WITH THE USER.

Version 1.1, August 24rd, 2012

.DESCRIPTION

This script can copy, export or import receive connector definitions
from Exchange 2010 Hub Transport Servers.

.PARAMETER Server
Exchange server to act upon

.PARAMETER CopyFrom
Target Exchange server

.PARAMETER ExportTo
File to import settings to

.PARAMETER ImportFrom
File to import settings from

.PARAMETER Overwrite
Overwrite existing receive connectors

.PARAMETER Clear
Clear previously defined receive connectors

.EXAMPLE
Export receive connectors from Exchange server HUB1 to file
.\Copy-ReceiveConnector.ps1 -Server HUB1 -ExportTo hub1.xml

Import receive connectors from file to Exchange server HUB2
.\Copy-ReceiveConnector.ps1 -Server HUB2 -ImportFrom hub1.xml

Copy receive connectors from Exchange server HUB1 to HUB2
.\Copy-ReceiveConnector.ps1 -Server HUB1 -CopyFrom HUB2 -Overwrite

#>

#Requires -Version 2.0

param(
[parameter(Position=0,Mandatory=$true,ValueFromPipelineByPropertyName=$true,ParameterSetName="Export")]
[parameter(Position=0,Mandatory=$true,ValueFromPipelineByPropertyName=$true,ParameterSetName="Import")]
[parameter(Position=0,Mandatory=$true,ValueFromPipelineByPropertyName=$true,ParameterSetName="Copy")]
[string]$Server,
[parameter(Position=1,Mandatory=$true,ValueFromPipeline=$false,ParameterSetName="Export")]
[string]$ExportTo,
[parameter(Position=1,Mandatory=$true,ValueFromPipeline=$false,ParameterSetName="Import")]
[string]$ImportFrom,
[parameter(Position=1,Mandatory=$true,ValueFromPipeline=$false,ParameterSetName="Copy")]
[string]$CopyFrom,
[parameter(Mandatory=$false,ValueFromPipeline=$false,ParameterSetName="Copy")]
[parameter(Mandatory=$false,ValueFromPipeline=$false,ParameterSetName="Import")]
[switch]$Overwrite=$false,
[parameter(Mandatory=$false,ValueFromPipeline=$false,ParameterSetName="Copy")]
[parameter(Mandatory=$false,ValueFromPipeline=$false,ParameterSetName="Import")]
[switch]$Clear=$false
)

Function iif {
param([bool]$cond, $rtrue, $rfalse)
If( $cond) {
return $rtrue;
}
else {
return $rfalse;
}
}

##################################################
# main
##################################################

if (!(Get-Command Get-ExchangeServer -ErrorAction SilentlyContinue)) {
throw "Exchange Management Shell required";
}

If( $ExportTo) {
Get-ReceiveConnector -Server $Server | Export-CliXML -Path $ExportTo
}
Else {
If( $ImportFrom) {
If( Test-Path $ImportFrom) {
$Config= Import-CliXml $ImportFrom
}
else {
throw "Import file not found";
}
}
If( $CopyTo) {
$Config= Get-ReceiveConnector -Server $Server
}
If( $Clear) {
Get-ReceiveConnector -Server $Server | Remove-ReceiveConnector -Confirm:$false
}

$srvFqdn= (Get-ExchangeServer $Server).Fqdn
$srvName= (Get-ExchangeServer $Server).Name

ForEach( $Conn in $Config) {

$NewName= $Conn.Name -replace $Conn.Server.Name, $srvName

If( Get-ReceiveConnector -Identity "$Server\$NewName" -ErrorAction SilentlyContinue) {
If( $Overwrite) {
$cmd= "Set-ReceiveConnector -Identity ""$Server\$NewName"""
}
else {
$cmd= ""
}
}
else {
$cmd= "New-ReceiveConnector -Name '$($NewName)' -Server $Server -Custom"

}
If( $cmd -ne "") {

$d= "$" # To turn True/False into $True/$False

$Domain= iif ($Conn.DefaultDomain -ne $null) "'$($Conn.DefaultDomain)'" "$($d)null"
$FQDN= iif ($Conn.AuthMechanism.ToString().contains("ExchangeServer")) "'$($srvfqdn)'" ( iif ($Conn.Fqdn -ne $null) "'$($Conn.Fqdn)'" "$($d)null")
$TlsDomainCapabilities= iif ( $Conn.TlsDomainCapabilities.count -ne 0) (( $Conn.TlsDomainCapabilities) -join ",") "$($d)null"
$RemoteIPRanges= ($Conn.RemoteIPRanges) -join ","
$Bindings= ($Conn.Bindings) -join ","

$cmd+= " -Bindings $Bindings -RemoteIPRanges $RemoteIPRanges -AdvertiseClientSettings $d$($Conn.AdvertiseClientSettings) "+
"-AuthMechanism $($Conn.AuthMechanism) -Banner '$($Conn.Banner)' -BinaryMimeEnabled $d$($Conn.BinaryMimeEnabled) "+
"-ChunkingEnabled $d$($Conn.ChunkingEnabled) -Comment '$($Conn.Comment)' -ConnectionInactivityTimeout $($Conn.ConnectionInactivityTimeout) "+
"-ConnectionTimeout $($Conn.ConnectionTimeout) "+
"-DefaultDomain $Domain -DeliveryStatusNotificationEnabled $d$($Conn.DeliveryStatusNotificationEnabled) "+
"-DomainSecureEnabled $d$($Conn.DomainSecureEnabled) -EightBitMimeEnabled $d$($Conn.EightBitMimeEnabled) "+
"-EnableAuthGSSAPI $d$($Conn.EnableAuthGSSAPI) -Enabled $d$($Conn.Enabled) -EnhancedStatusCodesEnabled $d$($Conn.EnhancedStatusCodesEnabled) "+
"-ExtendedProtectionPolicy $($Conn.ExtendedProtectionPolicy) -Fqdn $FQDN "+
"-LongAddressesEnabled $d$($Conn.LongAddressesEnabled) -MaxAcknowledgementDelay $($Conn.MaxAcknowledgementDelay) "+
"-MaxHeaderSize $($Conn.MaxHeaderSize.ToBytes()) -MaxHopCount $($Conn.MaxHopCount) -MaxInboundConnection $($Conn.MaxInboundConnection) "+
"-MaxInboundConnectionPercentagePerSource $($Conn.MaxInboundConnectionPercentagePerSource) -MaxInboundConnectionPerSource $($Conn.MaxInboundConnectionPerSource) "+
"-MaxLocalHopCount $($Conn.MaxLocalHopCount) -MaxLogonFailures $($Conn.MaxLogonFailures) -MaxMessageSize $($Conn.MaxMessageSize.ToBytes()) "+
"-MaxProtocolErrors $($Conn.MaxProtocolErrors) -MaxRecipientsPerMessage $($Conn.MaxRecipientsPerMessage) -MessageRateLimit $($Conn.MessageRateLimit) "+
"-MessageRateSource $($Conn.MessageRateSource) -OrarEnabled $d$($Conn.OrarEnabled) -PermissionGroups $($Conn.PermissionGroups) "+
"-PipeliningEnabled $d$($Conn.PipeliningEnabled) -ProtocolLoggingLevel $($Conn.ProtocolLoggingLevel) -RequireEHLODomain $d$($Conn.RequireEHLODomain) "+
"-RequireTLS $d$($Conn.RequireTLS) -SizeEnabled $($Conn.SizeEnabled) -SuppressXAnonymousTls $d$($Conn.SuppressXAnonymousTls) "+
"-TarpitInterval $($Conn.TarpitInterval) -TlsDomainCapabilities $TlsDomainCapabilities"

#echo $cmd
Invoke-Expression -Command $cmd

}
else {
echo "Skipping existing connector $($Connector.Name)"
}

}
}

 
Gönderildi : 15/12/2015 18:25

(@ugurdemir)
Gönderiler: 9886
Illustrious Member
 

Geri bildirim için teşekkürler.

 
Gönderildi : 26/12/2015 01:18

Paylaş: