DkimVerifierMaxSignatures Property

Get or set the maximum number of DKIM-Signature headers to verify per message.

Definition

Namespace: MimeKit.Cryptography
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
C#
public int MaxSignatures { get; set; }

Property Value

Int32
The maximum number of signatures to verify.

Remarks

Gets or sets the maximum number of DKIM-Signature headers that Verify(FormatOptions, MimeMessage, CancellationToken) will verify.

Each signature may require a DNS query and hashing the message body, so this limit protects against messages crafted with a large number of signatures. DKIM-Signature headers beyond the limit are ignored (RFC 6376, Section 8.4).

The default value is 10.

Exceptions

ArgumentOutOfRangeException value is less than 1.

See Also