SmtpPort uses ConstantsTrait
Well-known TCP ports used by SMTP transports.
Names follow the role of the port rather than a raw number, so callers
never hard-code 465 / 587 / 25:
| Port | Constant | IANA service | Usage |
|---|---|---|---|
| 25 | SMTP |
smtp |
Server relay / cleartext (MTA↔MTA) |
| 465 | IMPLICIT_TLS |
submissions |
Submission over implicit TLS (RFC 8314) |
| 587 | SUBMISSION |
submission |
Submission with STARTTLS (RFC 6409) |
| 2525 | ALTERNATE |
— | Common non-standard fallback when 587 is blocked |
Tags
Table of Contents
Constants
- ALTERNATE : int = 2525
- Common non-standard fallback used by some providers when `587` is blocked.
- IMPLICIT_TLS : int = 465
- Message submission over implicit TLS (RFC 8314). IANA service `submissions`.
- SMTP : int = 25
- Classic SMTP port — server-to-server relay and cleartext. IANA service `smtp`.
- SUBMISSION : int = 587
- Message submission with STARTTLS (RFC 6409). IANA service `submission`.
Constants
ALTERNATE
Common non-standard fallback used by some providers when `587` is blocked.
public
int
ALTERNATE
= 2525
IMPLICIT_TLS
Message submission over implicit TLS (RFC 8314). IANA service `submissions`.
public
int
IMPLICIT_TLS
= 465
SMTP
Classic SMTP port — server-to-server relay and cleartext. IANA service `smtp`.
public
int
SMTP
= 25
SUBMISSION
Message submission with STARTTLS (RFC 6409). IANA service `submission`.
public
int
SUBMISSION
= 587