Class MailAccountTransportSecurityOptions
- Namespace
- MailFathom.Infrastructure.Mail
- Assembly
- MailFathom.Infrastructure.dll
Binds an account's transport security settings and maps them onto the domain policy.
public sealed class MailAccountTransportSecurityOptions
- Inheritance
-
MailAccountTransportSecurityOptions
- Inherited Members
Remarks
This is the configuration adapter for MailTransportSecurityPolicy: it stays mutable and binder-friendly, while every rule it reports comes from the domain policy rather than being restated here. The host binds it, validates it before workers start, and turns the reported errors into startup failures.
Properties
- AllowClearTextAuthenticationOverUnencryptedConnection
Gets or sets whether sending a reusable password over an unencrypted channel is accepted.
- AllowInsecureConnection
Gets or sets whether a connection mode that can leave the channel unencrypted is accepted.
- CertificateTrust
Gets or sets which certificate authorities validate the server certificate.
- ConnectionSecurity
Gets or sets how the connection is encrypted.
- EffectivePermittedAuthenticationMechanisms
Gets the configured SASL mechanisms or the post-binding default allow-list.
- PermittedAuthenticationMechanisms
Gets or sets the SASL mechanisms the account may authenticate with.
- TrustedCertificateAuthority
Gets or sets the secret block referencing deployment-provisioned trust anchor material.
Methods
- CreatePolicy()
Builds the validated domain policy for this account.
- FindConfigurationErrors()
Finds every unsupported mechanism name and every violated domain transport security rule.
- LoadTrustedCertificateAuthorityAsync(TrustAnchorLoader, CancellationToken)
Loads the certificate the account's server must chain to, when it trusts an additional authority.