Enum MailConnectionSecurity
- Namespace
- MailFathom.Domain.Transport
- Assembly
- MailFathom.Domain.dll
Selects how a mail transport connection is encrypted.
public enum MailConnectionSecurity
Fields
Auto = 0Lets the transport client negotiate encryption and continue unencrypted when the server offers none.
None = 4Uses no encryption at all.
StartTlsRequired = 2Requires STARTTLS after the greeting and fails when the server does not advertise it.
StartTlsWhenAvailable = 3Uses STARTTLS when the server advertises it and otherwise continues unencrypted.
TlsOnConnect = 1Encrypts the connection immediately with implicit TLS.
Remarks
Only TlsOnConnect and StartTlsRequired guarantee that credentials and mail content never travel over an unencrypted channel. The remaining modes can complete a connection without encryption, so a transport security policy requires an explicit operator opt-in before selecting them.