Table of Contents

Class OutgoingRecipientPolicy

Namespace
MailFathom.Domain.Delivery.Governance
Assembly
MailFathom.Domain.dll

Who this deployment may write to, as the operator's answer rather than any author's.

public sealed class OutgoingRecipientPolicy
Inheritance
OutgoingRecipientPolicy
Inherited Members

Remarks

It is one policy for the whole installation rather than a setting per account, per rule, or per tool, because the question it answers is about the instance: an operator who has said their instance only ever writes to their own team has said it about everything the instance can do, and a bound written per caller would have to be written again for the caller added next.

A deployment that names nobody restricts nobody, which is the default posture and the one an operator gets by writing nothing. That is coherent rather than lax: sending is already off until an account is turned on, so an instance nobody enabled writes to nobody whatever this policy says.

The two lists are read denied-first, so an address on both is refused. An operator who wrote it twice described the narrower intent twice, and the stricter reading is the one that cannot cost them a message they did not mean to send.

Properties

RestrictsRecipients

Gets whether this policy could refuse anything at all.

Unrestricted

Gets the policy of a deployment that named nobody, which admits every recipient.

Methods

Create(IReadOnlyList<OutgoingRecipientRule>, IReadOnlyList<OutgoingRecipientRule>)

Builds a policy from the entries an operator wrote.

Judge(EmailAddress)

Judges one recipient of one message.