API Reference
DesiredStateSpfPolicy
Provides desired state spf policy functionality.
Inheritance
- Object
- DesiredStateSpfPolicy
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by
- Property DesiredStateConfiguration.Spf
- Property DesiredStateProfile.Spf
- Method DesiredStateSpfPolicy.Clone
Accepted by parameters
- Method DesiredStateSpfPolicy.Apply
Constructors
public DesiredStateSpfPolicy() #Methods
Inherited Methods
public override Boolean Equals(Object obj) #BooleanParameters
- obj Object
Properties
public Nullable<Boolean> Enabled { get; set; } #JsonPropertyName("enabled")Gets or sets the enabled value.
public Nullable<Boolean> RequireRecord { get; set; } #JsonPropertyName("requireRecord")Gets or sets the require record value.
public Nullable<Boolean> RequireValidRecord { get; set; } #JsonPropertyName("requireValidRecord")When true, requires the SPF record to be syntactically valid (v=spf1, no obvious syntax errors).
public Nullable<Boolean> RequireSingleRecord { get; set; } #JsonPropertyName("requireSingleRecord")When true, requires exactly one SPF record to be published.
public Nullable<Boolean> RequireEffectiveSpfSends { get; set; } #JsonPropertyName("requireEffectiveSpfSends")When true, requires SPF to effectively authorize outbound senders after resolving include/redirect chains.
public String[] AllowedAllMechanisms { get; set; } #JsonPropertyName("allowedAllMechanisms")Allowed all mechanisms, as SPF syntax strings (e.g., "-all", "~all").
public Nullable<Boolean> RequireAllMechanism { get; set; } #JsonPropertyName("requireAllMechanism")When true, requires the SPF record to include an all mechanism (e.g., -all, ~all).
public Nullable<Int32> MaxDnsLookups { get; set; } #JsonPropertyName("maxDnsLookups")Gets or sets the max dns lookups value.
public Nullable<Boolean> RequireDenyAll { get; set; } #JsonPropertyName("requireDenyAll")Gets or sets the require deny all value.
public String[] RequiredIncludeDomains { get; set; } #JsonPropertyName("requiredIncludeDomains")Include domains that must be present in the SPF record (top-level or resolved chain).
public Nullable<Boolean> MatchResolvedIncludes { get; set; } #JsonPropertyName("matchResolvedIncludes")When true, checks required include domains against the resolved include chain.
public Nullable<Boolean> DisallowPtr { get; set; } #JsonPropertyName("disallowPtr")When true, disallows the use of the SPF ptr mechanism.
public Nullable<Boolean> DisallowUnknownMechanisms { get; set; } #JsonPropertyName("disallowUnknownMechanisms")When true, disallows unknown mechanisms/modifiers.
public Nullable<Boolean> DisallowRedirect { get; set; } #JsonPropertyName("disallowRedirect")When true, disallows the redirect= modifier.
public Nullable<Boolean> RequireRedirect { get; set; } #JsonPropertyName("requireRedirect")When true, requires the redirect= modifier to be present.
public Nullable<Boolean> DisallowExp { get; set; } #JsonPropertyName("disallowExp")When true, disallows exp= (explanation) modifier.
public Nullable<Boolean> DisallowPermError { get; set; } #JsonPropertyName("disallowPermError")When true, disallows SPF PermError results.
public Nullable<Boolean> DisallowCname { get; set; } #JsonPropertyName("disallowCname")When true, disallows SPF records resolved through a CNAME alias.
public String[] AllowedRedirectDomainSuffixes { get; set; } #JsonPropertyName("allowedRedirectDomainSuffixes")Allowed domain suffixes for redirect= target.