DmarcRecordErrors Enumeration

The syntax errors found while parsing a DMARC Policy Record.

Definition

Namespace: MimeKit.Cryptography
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
C#
[FlagsAttribute]
public enum DmarcRecordErrors

Remarks

As required by RFC 9989, Section 4.8, syntax errors in a DMARC Policy Record are discarded in favor of default values. These flags record which errors were discarded, so that they can be logged or included in reports.

Members

None 0 No errors.
MalformedTag 1 A tag was not of the form name=value, or its name contained characters other than letters.
DuplicateTag 2 A tag appeared more than once. The first occurrence is used.
InvalidPolicy 4 The value of the p tag was invalid.
InvalidSubdomainPolicy 8 The value of the sp tag was invalid.
InvalidNonExistentSubdomainPolicy 16 The value of the np tag was invalid.
InvalidPublicSuffixDomain 32 The value of the psd tag was invalid.
InvalidTesting 64 The value of the t tag was invalid.
InvalidDkimAlignment 128 The value of the adkim tag was invalid.
InvalidSpfAlignment 256 The value of the aspf tag was invalid.
InvalidAggregateReportUri 512 The rua tag was empty or contained at least one invalid URI.
InvalidFailureReportUri 1,024 The ruf tag was empty or contained at least one invalid URI.
InvalidFailureReportingOptions 2,048 The value of the fo tag was invalid.

See Also