Verstehe ich nicht?
Die MX Records sind korrekt gesetzt. Der eine auf NSP und die 2te Domain auf Microsoft365
Ich habe die MX-Records noch einmal überprüfe. Die sind beide korrekt!
Aber es kommt beim Absender die E-Mail zurück mit der Nachricht:
Die folgende Organisation hat Ihre Nachricht abgelehnt: DOMAIN2-de01e2b.mail.eo.outlook.com.
(Das ist auch die Domain im MX-Record.
Diagnoseinformationen für Administratoren:
Generierender Server: smtprelay01.ispgateway.de
brian@Domain2.de
Domain2-de01e2b.mail.eo.outlook.com
Remote Server returned '554 5.0.0 <DOMAIN2-de01e2b.mail.eo.outlook.com #5.0.0 smtp; 550 5.7.51 TenantInboundAttribution; There is a partner connector configured that matched the message's recipient domain. The connector had either the RestrictDomainsToIPAddresses or RestrictDomainsToCertificate set [VI1EUR06FT038.eop-eur06.prod.protection.outlook.com]>'
Es wurde ja ein PowerShell Skript von NSP bei der Installation ausgeführt.
Install-Module -Name ExchangeOnlineManagement
dann wurde das PowerShell Script von NoSpamProxy ausgeführt
Wir drehe ich das wieder zurück?
OK, ich denke das Script hat nur die Connectoren und die Regel gesetzt.
Hier ist das Script:
# This script configures the routing between NoSpamProxy and your Office 365 installation.
# Review each command carefully and do not execute it unless you understand its implications.
if (!(Get-Command Connect-ExchangeOnline -ErrorAction SilentlyContinue)) {
Write-Host "It looks like the ExchangeOnlineManagement CmdLets not installed. These are required to use Microsofts Exchange Online PowerShell V2 modules."
Write-Host "Further Information can be found here:
https://docs.microsoft.com/en-us/powershell/exchange/exchange-online-powershell-v2 and here:
https://www.powershellgallery.com/packages/ExchangeOnlineManagement/"
Write-Host "Please install those modules. You can use `'Install-Module -Name ExchangeOnlineManagement`' for installation."
return
}
"This script is an aid for customising e-mail routing in Exchange-Online."
"Execute it only if you are aware of its effects and check the content for correctness."
"You are solely responsible for all consequences of the execution."
$decision = $Host.UI.PromptForChoice($null, 'Do you want to proceed?', ('&Yes', '&No'), 1)
if ($decision -ne 0) {
"Aborting"
return;
}
"Connecting to Exchange Online..."
Connect-ExchangeOnline -ShowBanner:$false
"Configuring Exchange routing..."
# Create an inbound connector that accepts emails from NoSpamProxy
$inboundConnector = New-InboundConnector -Name "From NoSpamProxy" -TlsSenderCertificateName netdesignde.o365.cloud.nospamproxy.com -RequireTls $true -SenderDomains * -RestrictDomainsToCertificate $true -ErrorAction SilentlyContinue
# Create an outbound send connector to route all outbound emails via NoSpamProxy
$outboundConnector = New-OutboundConnector -Enabled $true -IsTransportRuleScoped $true -Name "To NoSpamProxy" -TlsSettings DomainValidation -TlsDomain netdesign-de.mail.cloud.nospamproxy.com -ConnectorType Partner -SmartHosts netdesign-de.mail.cloud.nospamproxy.com -UseMXRecord $false -ErrorAction SilentlyContinue
# Disable Office 365 anti spam filtering for inbound emails
$inboundRule = New-TransportRule -SetSCL "-1" -FromScope NotInOrganization -Name "Disable Spam filtering for inbound emails" -ErrorAction SilentlyContinue
# Create a transport rule to route all outbound emails through the connector created above
$outboundRule = New-TransportRule -Name "Outbound Mails to NoSpamProxy" -SentToScope NotInOrganization -RouteMessageOutboundConnector "To NoSpamProxy" -ErrorAction SilentlyContinue
Disconnect-ExchangeOnline -Confirm:$false
if (!$inboundConnector){
Write-Host -ForegroundColor "red" "Failed to create the inbound connector."
} else {
Write-Host -ForegroundColor "green" "Successfully created the inbound connector."
}
if (!$outboundConnector){
Write-Host -ForegroundColor "red" "Failed to create the outbound connector."
} else {
Write-Host -ForegroundColor "green" "Successfully created the outbound connector."
}
if (!$inboundRule) {
Write-Host -ForegroundColor "red" "Failed to create the inbound transport rule."
} else {
Write-Host -ForegroundColor "green" "Successfully created the inbound transport rule."
}
if (!$outboundRule) {
Write-Host -ForegroundColor "red" "Failed to create the outbound transport rule."
} else {
Write-Host -ForegroundColor "green" "Successfully created the outbound transport rule."
}