Domain Detective

API Reference

Class

CmdletTestSpfHost

Namespace DomainDetective.PowerShell
Assembly DomainDetective.PowerShell
Implements
IDisposable
Modifiers sealed
Attributes
Cmdlet("Test", "DDSpfHost", DefaultParameterSetName = "ByDomain") Alias(["Test-SpfHost"]) OutputType([typeof(SpfHostEvaluation)])

Tests an IP/sender/HELO against a domain's SPF policy.

Inheritance

Examples

Evaluate an IP against SPF.


Test-DDSpfHost -DomainName example.com -IpAddress 192.0.2.10 -Sender [email protected]
        

Constructors

Methods

ProcessRecordAsync() #

Evaluates the provided host against the domain's SPF policy.

Returns

A task that represents the asynchronous operation.

Fields

public String[] DomainName #
Parameter(Mandatory = true, ParameterSetName = "ByDomain", Position = 0, ValueFromPipeline = true, ValueFromPipelineByPropertyName = true) ValidateNotNullOrEmpty ValidateDomainName
public String IpAddress #
Parameter(Mandatory = true, ParameterSetName = "ByDomain", Position = 1) ValidateNotNullOrEmpty
public String Sender #
Parameter(Mandatory = false)
public String Helo #
Parameter(Mandatory = false)
public DnsEndpoint DnsEndpoint #
Parameter(Mandatory = false)
public String TestSpfRecord #
Parameter(Mandatory = false)
public SwitchParameter AsJson #
Parameter(Mandatory = false)
{{ include "footer" }}