Dmarc VerifierMax Author Domains Property
Get or set the maximum number of Author Domains to evaluate.
Definition
Namespace: MimeKit.Cryptography
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
The maximum number of Author Domains.
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
C#
public int MaxAuthorDomains { get; set; }Property Value
Int32The maximum number of Author Domains.
Remarks
Gets or sets the maximum number of distinct Author Domains that will be evaluated when the From header contains more than one mailbox.
According to RFC 9989, Section 5.3.1, DMARC validation is not possible for a message with more than one Author Domain, but a Mail Receiver may choose to evaluate each of them. Since this can be abused as a denial-of-service attack (RFC 9989, Section 11.5), messages with more Author Domains than this limit result in PermError with MultipleAuthorDomains.
The default value is 1.
Exceptions
| ArgumentOutOfRangeException | value is less than 1. |