Cold Email Infrastructure

    SMTP Ports: What 25, 465, 587 and 2525 Are Actually Registered For

    Three of the four ports in circulation are registered to mail and one is not. What the IANA registry and the RFCs say, and why none of it moves placement.

    Editorial illustration for SMTP Ports
    August 20, 2026Updated August 16, 20268 min read
    Share:
    The short answer

    Port 25 carries server-to-server relay and has no alternative, because MX records cannot specify a port. Submission uses port 587 by design and port 465 by history, both registered and equally secure when TLS is required. Port 2525 is registered to an unrelated service and survives only as a workaround for blocked networks.

    Key takeaways

    • The IANA service-name registry published 11 August 2026 lists 25/tcp as smtp, 587/tcp as submission citing RFC 6409, and 465/tcp under two assignments at once: urd, and submissions citing RFC 8314.
    • Port 2525 is registered as ms-v-worlds and has no mail assignment in any RFC; it is a vendor convention for customers whose networks block the registered ports.
    • RFC 8314 states there is no significant difference between the security properties of STARTTLS on 587 and implicit TLS on 465 when both ends require successful TLS negotiation, so the risk lies in any setting that makes TLS optional.
    • Outbound port 25 is widely blocked by providers, a practice RFC 5068 documented in 2007; a blocked port produces a connection failure rather than a placement problem.

    Reviewed and updated August 16, 2026

    One setup guide tells you to use port 587. The next one says 465. A third offers 2525 as the fallback "if your host blocks the others", with no explanation of what 2525 is. Three answers, one connection, and the disagreement is not really about email at all. It is about which of these numbers a standards body actually assigned to mail, and which one a vendor started using because a firewall was in the way.

    The registry settles most of it in about a minute, and the one place it does not settle is the interesting part.

    What the port registry actually says

    IANA maintains the Service Name and Transport Protocol Port Number Registry, and the four numbers in circulation resolve like this in the copy of that registry published on 11 August 2026.

    Port 25 is smtp, Simple Mail Transfer. Port 587 is submission, Message Submission, pointing at RFC 6409. Port 465 carries two assignments at once: urd, a URL Rendezvous Directory service that has nothing to do with mail, and submissions, Message Submission over TLS, pointing at RFC 8314 and dated 12 December 2017.

    Port 2525 is ms-v-worlds. It is not a mail port, it has never been a mail port, and no RFC mentions it in this context.

    Registered to mailWith a standards-track reference
    • 25/tcp: smtp, Simple Mail Transfer
    • 587/tcp: submission, Message Submission, RFC 6409
    • 465/tcp: submissions, Message Submission over TLS, RFC 8314
    Registered to something elseUsed for mail by convention only
    • 465/tcp also carries urd, URL Rendezvous Directory
    • 2525/tcp: ms-v-worlds, no mail assignment of any kind
    • No RFC assigns 2525 to SMTP or to submission
    The four numbers, as the IANA service-name registry lists them (copy published 11 August 2026). Only three of the four are mail at all.

    That last line is worth sitting with, because port 2525 appears in a great many vendor setup pages beside the registered ports as though it were a peer of them. It is a convention, offered by hosts whose customers find the real ports blocked. It works when the far end has chosen to listen there. It is not a standard, it is not more or less secure than anything else, and nothing about it is guaranteed by anyone.

    Relay and submission are two different jobs

    The reason there is more than one mail port is that there are two different transactions, and the specifications separate them deliberately.

    RFC 5321 defines SMTP itself, and its receiving-strategy section says an SMTP server should attempt to keep a pending listen on the SMTP port, specified by IANA as port 25, at all times. That is server-to-server relay: one mail transfer agent handing a message to the next, unauthenticated, addressed by the recipient's MX records. Because MX records carry no port number, relay always happens on 25. There is no alternative for it and never has been.

    RFC 6409 defines the other transaction, message submission, where a person's software hands a new message to their own provider to be sent. Its opening states the split plainly: message relay is unaffected and continues to use SMTP over port 25, while message submission uses the protocol specified there, normally over port 587. Section 3.1 is more direct still. Port 587 is reserved for email message submission, and messages received on that port are defined to be submissions.

    RFC 5068, the operational companion, turns that into requirements an operator has to meet. Submission agents must listen on port 587 by default, must require authentication on port 587, and must never permit relaying of unauthenticated messages to other domains.

    1. Step 1Submission

      Your client or sending platform authenticates to your own provider and hands over a new message. Port 587, or 465, and authentication is mandatory.

    2. Step 2Relay

      Your provider looks up the recipient domain's MX records and delivers to the next mail server. Port 25, no authentication, no port choice available.

    3. Step 3Filtering

      The receiving system decides placement on reputation, authentication and content. Nothing about which submission port you used reaches this step.

    The two transactions the ports separate. A cold campaign only ever performs the first one; the second is what happens after your provider accepts the message.

    Reading it that way makes one thing obvious. The port question belongs to the first step only. It describes how your message gets into the mail system, not how it travels through it and not how it is judged at the other end.

    Port 465 has a history, and the history is the confusion

    Section illustration: Port has a history, and the history is the confusion

    The reason 465 and 587 both exist for the same job is not a design decision. It is an accident that got standardised twenty years later.

    RFC 8314 section 7.3 records it. Port 465 was briefly registered as the "smtps" port, and the registration was revoked on the grounds that it made no sense, since MX infrastructure has no way to specify a port and so relay always uses 25. The number was then reassigned to a different service, which is the urd entry still sitting in the registry today. In the meantime, widely deployed mail software had read "smtps" as meaning submission over TLS and had been using 465 for exactly that, by default, whenever a user asked for a secure connection during account setup.

    By 2017 that practice was too entrenched to unwind, so IANA assigned an alternate usage of TCP port 465 alongside the existing one, under the service name submissions. RFC 8314 calls it a one-time procedural exception requiring explicit IESG approval, and states that it does not set a precedent.

    So both ports are correct. One was designed for the job and one grew into it, and the registry now says so out loud.

    STARTTLS on 587, implicit TLS on 465

    The mechanical difference between the two is when encryption starts.

    On 587 the connection opens in cleartext and the client issues the STARTTLS command defined by RFC 3207 to negotiate TLS before authenticating. On 465 the TLS handshake begins immediately on connection, before any SMTP is spoken, which RFC 8314 calls implicit TLS.

    RFC 8314 also settles the security argument that setup guides like to have. It states that there is no significant difference between the security properties of STARTTLS on port 587 and implicit TLS on port 465 if the implementations are correct and if both the client and the server are configured to require successful negotiation of TLS prior to message submission. It recommends that clients and servers implement both for a transition period, which is why every provider offers both.

    The conditional in that sentence is the whole risk. STARTTLS starts in the clear, so a client that treats TLS as optional can be talked out of it. Implicit TLS has no cleartext phase to downgrade. If your sending software has a setting that reads like "use TLS if available", that setting is the problem, on either port.

    The port that is probably blocked is 25

    Section illustration: The port that is probably blocked is

    RFC 5068 describes the practice that shapes real deployments: some providers block all use of port 25 for outbound mail, or redirect it through a local proxy, except for explicitly authorised hosts. The document declines to recommend for or against the practice and instead pushes the constructive path, which is using the official submission port.

    Nearly twenty years on, that blocking is close to universal on consumer connections and common on cloud instances, where outbound 25 typically has to be requested and justified. It is the single most likely explanation for a connection that hangs on 25 and works instantly on 587, and it is also why port 2525 exists as a folk remedy: a customer whose network blocks 25 and, less often, 587, needs some number that is not on anybody's block list.

    None of this is a deliverability signal. A blocked port produces a connection failure, which is loud, immediate and nothing like a message that is accepted and filed as junk.

    What a provider actually publishes

    Google's Workspace administrator documentation is a clean worked example, and it was serving these values on 16 August 2026. It offers three ways to connect a device or application, and the ports separate them.

    The SMTP relay service at smtp-relay.gmail.com lists configuration options of port 25, 465 or 587. The Gmail SMTP server at smtp.gmail.com lists the same three, and the setup steps are specific about which is which: for SSL enter 465, for TLS enter 587. The restricted server at aspmx.l.google.com lists port 25 only, states that TLS and authentication are not required, and requires the sending device's IP address to be added to an allowlist in the admin console instead.

    That third option is the one that shows what the ports mean. It is unauthenticated, so it can only be port 25, and the price of skipping authentication is that Google has to identify you some other way. Note also the dated policy change on the same page: from 1 May 2025, Google Workspace accounts no longer support sign-in from apps or devices using a username and password alone. Provider port lists survive for years; provider authentication policies do not, so re-read the page rather than a summary of it. The per-provider settings themselves are covered in Gmail SMTP settings and Office 365 SMTP settings.

    Which port to use
    • Yes: Sending platform holds the connection for you: there is no port to choose
    • Yes: Connecting a mailbox or device yourself: prefer 587 with TLS required
    • Yes: Client only supports implicit TLS: 465 is equally correct
    • No: Any setting that makes TLS optional: turn it off, on either port
    • Depends: Outbound 25 hangs: expect network-level blocking, not a mail fault
    • Depends: 2525 offered as a fallback: unregistered convention, use only if your host requires it
    Choosing a submission port, in the order the decision actually resolves.

    The port is not a deliverability lever

    Section illustration: The port is not a deliverability lever

    Sender-side advice sometimes reaches for the port as though it were a tuning knob. It is not one, and the reason is structural rather than a matter of opinion. The receiving system that decides whether your message reaches an inbox never sees your submission port. It sees a relay connection on 25 from your provider, carrying authentication results, a sending domain and a reputation history attached to that domain.

    We run client campaigns through a sending platform on dedicated mailboxes, on domains kept separate from the client's primary domain, and the port has never been a variable in that setup, because the platform holds the connection. The things that do move placement are covered in the cold email deliverability guide, the ceilings that bind before any of them are in email sending limits by provider, and the question of what kind of server you need at all is SMTP server. If a relay sits in the path, SMTP relay is the shape of that hop. You can also see what a campaign would look like for your market.

    The short version

    Relay is port 25 and has no alternative, because MX records cannot carry a port. Submission is port 587 by design and port 465 by history, both registered, both correct, and equally secure when TLS is required rather than merely available. Port 2525 is registered to something else entirely and survives as a workaround for blocked networks. Outbound 25 being blocked is the ordinary explanation for a connection that will not open, and none of these numbers has any bearing on whether the message lands in an inbox.

    Port assignments verified against the IANA Service Name and Transport Protocol Port Number Registry published 11 August 2026, and provider configuration verified as of August 2026. Verify current terms with the provider before relying on them.

    Sources: IANA Service Name and Transport Protocol Port Number Registry, RFC 5321, Simple Mail Transfer Protocol, RFC 6409, Message Submission for Mail, RFC 5068, Email Submission Operations, RFC 8314, Cleartext Considered Obsolete, RFC 3207, SMTP Service Extension for Secure SMTP over TLS, Send email from a printer, scanner, or app, Google Workspace Admin Help

    Questions

    Frequently asked questions.

    Frequently asked questions
    Should I use port 587 or port 465?
    Either, and 587 is the safer default because more clients implement it correctly. RFC 6409 reserves 587 for message submission, and RFC 8314 assigned 465 as submissions to match software that had been using it for years. The specification says their security properties do not meaningfully differ provided both ends require TLS rather than treating it as optional.
    Why does port 25 not work from my server?
    Almost always network-level blocking rather than a mail fault. RFC 5068 records the practice of providers blocking outbound port 25 except for authorised hosts, and it is now close to universal on consumer connections and common on cloud instances where outbound 25 has to be requested. Use the submission port instead, or ask your host to open 25.
    Is port 2525 a real SMTP port?
    Not in any registry. The IANA service-name registry lists 2525/tcp as ms-v-worlds, and no RFC assigns it to SMTP or to submission. It works when the receiving service has chosen to listen there, which several sending platforms do for customers whose networks block the registered ports. It is neither more nor less secure than the others.
    Does the SMTP port I use affect deliverability?
    No, and the reason is structural. The port you choose applies to submission, meaning the handoff to your own provider. The receiving system that decides placement sees a relay connection on port 25 from your provider, carrying authentication results, a sending domain and a reputation history. Your submission port never reaches that decision.
    SMTPEmail InfrastructureEmail DeliverabilityTechnical SetupCold Email
    Byline

    About the author.

    Tim Carden

    Tim Carden is CMO / CTO at RevenueFlow, which builds and operates outbound revenue engines for B2B companies. Studied at McGill University.

    Tim Carden · CMO / CTO

    Connect on LinkedIn →
    Your next move

    Ready to scale your outreach?

    We build GTM engines that book real meetings. See the receipts.

    Further reading

    Related articles.

    Cold Email Infrastructure

    Email Bounce Message Examples: Eight Refusals, and Who Owns Each One

    Eight rejections a B2B sender actually meets, each quoted as Google or Microsoft publishes it, sorted by who owns the problem rather than by what the code means.

    7 min readRead →
    Cold Email Infrastructure

    Spam Filter Barracuda: How to Diagnose It Before It Costs a Domain

    Two Barracudas sit between a cold email and a B2B inbox, and only one has a lookup. Written for the sender being blocked rather than the administrator doing it.

    10 min readRead →
    Cold Email Infrastructure

    Spam Filter Test: What Actually Triggers It

    Two different products are sold as a spam filter test. One scores a message, one samples a seed panel, and neither can see the layer that usually decides B2B placement.

    8 min readRead →
    Cold Email Infrastructure

    How to Bypass a Spam Filter: The Only Method That Works, and Who Holds It

    One reliable bypass exists and the recipient's administrator holds it. What the admin controls actually do, and why sender-side bypass tactics make placement worse.

    7 min readRead →
    Cold Email Infrastructure

    Bounce Back Email for B2B Teams: How to Diagnose It Before It Costs a Domain

    A bounce back email carries the receiving server's verbatim reason for refusing you. Here is how to read the codes, and what the shape of a batch tells you.

    9 min readRead →
    Cold Email Infrastructure

    The GMass SMTP Test: What a Passing Connection Does Not Prove

    GMass publishes a free SMTP connection tester that anyone can use. What its four stages separate, why the last one gets misdiagnosed, and where the tool's boundary is.

    7 min readRead →