Table of Contents

Enum MailConnectionSecurity

Namespace
MailFathom.Domain.Transport
Assembly
MailFathom.Domain.dll

Selects how a mail transport connection is encrypted.

public enum MailConnectionSecurity

Fields

Auto = 0

Lets the transport client negotiate encryption and continue unencrypted when the server offers none.

None = 4

Uses no encryption at all.

StartTlsRequired = 2

Requires STARTTLS after the greeting and fails when the server does not advertise it.

StartTlsWhenAvailable = 3

Uses STARTTLS when the server advertises it and otherwise continues unencrypted.

TlsOnConnect = 1

Encrypts 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.