Domain Detective

API Reference

Class

CmdletNewDmarcRecord

Namespace DomainDetective.PowerShell
Assembly DomainDetective.PowerShell
Implements
IDisposable
Modifiers sealed
Attributes
Cmdlet("New", "DDDmarcRecord") Alias(["New-DmarcRecord"]) OutputType([typeof(String)])

Builds a DMARC record string.

Inheritance

Examples

Create a DMARC record.


New-DDDmarcRecord -Policy reject -AggregateUri mailto:[email protected]
        

Constructors

Methods

BeginProcessingAsync() #

Prompts for parameters when StepByStep is specified.

EndProcessingAsync() #

Builds and outputs the final DMARC record string.

Properties

public String Policy { get; set; } #
Parameter(Position = 0) ValidateSet(["none", "quarantine", "reject"])

Main DMARC policy.

public String SubPolicy { get; set; } #
Parameter ValidateSet(["none", "quarantine", "reject"])

Policy applied to subdomains.

public String AggregateUri { get; set; } #
Parameter

Aggregate report URI(s).

public String ForensicUri { get; set; } #
Parameter

Forensic report URI(s).

public Nullable<Int32> Percent { get; set; } #
Parameter ValidateRange(0, 100)

Percentage of mail subjected to the policy.

public String DkimAlignment { get; set; } #
Parameter ValidateSet(["r", "s"])

DKIM alignment mode.

public String SpfAlignment { get; set; } #
Parameter ValidateSet(["r", "s"])

SPF alignment mode.

public String FailureOptions { get; set; } #
Parameter

Failure reporting options.

public Nullable<Int32> ReportingInterval { get; set; } #
Parameter

Reporting interval in seconds.

public String DomainName { get; set; } #
Parameter

Domain name for publishing.

public Uri DnsApiUrl { get; set; } #
Parameter

DNS provider API endpoint.

public SwitchParameter Publish { get; set; } #
Parameter

Publish the record via DNS provider.

public SwitchParameter StepByStep { get; set; } #
Parameter

Prompt step by step for all options.

{{ include "footer" }}