Method GetDeliveryPolicy
- Namespace
- MailFathom.Application.Mail
- Assembly
- MailFathom.Application.dll
GetDeliveryPolicy(MailAccountId)
Gets the validated policy the same account's submission endpoint is reached under.
MailTransportSecurityPolicy? GetDeliveryPolicy(MailAccountId accountId)
Parameters
accountIdMailAccountIdThe local account identifier.
Returns
- MailTransportSecurityPolicy
The policy, or null when the account configures no submission endpoint.
Remarks
It is a second policy rather than the one above because the two endpoints are two servers: a provider that serves reading over implicit TLS commonly serves submission over STARTTLS on a port of its own, and a policy forced to describe both would make one of them wrong. Everything else about the account is shared, so the permitted mechanisms, the accepted weakenings, and the certificate authority are the same values judged by the same rules — a downgrade refused for reading is refused here identically.
Exceptions
- MailTransportSecurityPolicyViolationException
Thrown when the configured policy is unsafe.