Commands › Exchange Online
Test-SenderId
Test whether a specified IP address is the legitimate sending address for a specified SMTP address.
Quick start script
# Test-SenderId — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-ExchangeOnline -CertificateThumbprint $thumb -AppId $appId -Organization $org
# 2. Run and inspect
Test-SenderId -IPAddress <IPAddress> -PurportedResponsibleDomain <SmtpDomain> | Format-List
# 3. Export for evidence / drift tracking
Test-SenderId | Export-Clixml .\SenderId-$(Get-Date -Format yyyyMMdd).xml
Syntax
Test-SenderId -IPAddress <IPAddress> -PurportedResponsibleDomain <SmtpDomain>
[-Confirm]
[-DomainController <Fqdn>]
[-HelloDomain <String>]
[-Server <ServerIdParameter>]
[-WhatIf]
[<CommonParameters>]
Parameters (7)
Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.