SMTP Ports Explained: 25, 465, 587 & 2525 — Which One to Use

Four different ports, four different histories, and one question everyone eventually asks: which one am I actually supposed to be using? Here's the complete, precise answer.

📅 Published August 2026· ⏳ 22 min read· ✍️ ToolsNovaHub Editorial Team
🛠️ Related tool: Open SMTP Tester →

Why SMTP Has More Than One Port in the First Place

It's a reasonable question the first time you encounter it: why does a single protocol need four different commonly-used ports, rather than just one? The answer is historical rather than technical necessity — SMTP's port landscape evolved in layers over roughly three decades, each new port introduced to solve a specific, real problem the existing ports hadn't adequately addressed, rather than as part of any unified original design. Port 25 came first, in the original 1982 specification, designed purely for server-to-server relay in a network without today's spam problem. Ports 587 and 465 arrived later, specifically to separate authenticated client submission from anonymous relay once spam abuse made that separation necessary. Port 2525 arrived later still, as a pragmatic, non-standardized workaround for networks that had become so aggressive about blocking the "real" mail ports that providers needed an alternative simply to remain reachable at all. Understanding this layered history — rather than treating the four ports as arbitrary, interchangeable options — makes the actual decision of which one to use in a given situation considerably more straightforward.

ToolsNovaHub Pro Tip
Default to port 587 with STARTTLS for any new client or application sending mail through a provider, unless that provider's documentation specifically recommends otherwise. It's the most broadly compatible, least likely to be blocked, and most widely expected modern choice.
⚠️
Common Beginner Mistake
Assuming port 25 is the port you should use for your application's outgoing mail. Port 25 is for server-to-server relay, is frequently blocked outbound on client networks and cloud platforms by default, and is almost never the right choice for a typical application sending transactional or notification email through a provider.

The Four Ports at a Glance

PortOfficial StatusPrimary PurposeCommon Outbound Blocking
25Original SMTP standard (RFC 5321)Server-to-server relayFrequently blocked by ISPs and cloud providers by default
587Submission standard (RFC 6409)Authenticated client submission with STARTTLSRarely blocked; the modern recommended default
465Originally deprecated, now restored (RFC 8314)Authenticated client submission with implicit TLSRarely blocked; increasingly recommended alongside 587
2525Non-standard, provider-specific conventionFallback submission port when 25/465/587 are all blockedRarely blocked, precisely because it's non-standard and less commonly filtered

Port 25: The Original, and the Most Restricted Today

Port 25 is where SMTP began, and it remains the standard port for one specific job it still performs today: the actual transfer of mail between servers as it hops toward its final destination — what's often called MTA-to-MTA (Mail Transfer Agent to Mail Transfer Agent) relay. When your mail provider's outbound server finally delivers a message to the recipient's mail server, that final handoff happens over port 25, regardless of which port your own client used to submit the message in the first place. This distinction — port 25 for the final server-to-server hop, versus 587/465 for the client-to-provider submission step — is the single most important mental model for understanding why blocking outbound port 25 on a client network doesn't actually prevent that network's users from sending mail at all, since their client software was never using port 25 directly to begin with, only their provider's own infrastructure uses it for the final delivery hop, a detail that resolves a huge share of the initial confusion anyone new to this topic runs into.

The reason port 25 is so commonly blocked at the client and application level comes down entirely to abuse history: a compromised machine with unrestricted outbound port 25 access can attempt to relay spam directly to recipient servers, bypassing any provider-level sending controls entirely. Blocking this at the network level — ISPs blocking it for residential customers, cloud providers blocking it by default for new accounts — closes off a significant spam vector at minimal cost to legitimate users, since legitimate users were never supposed to be using port 25 directly from a client or application in the first place.

Port 587: The Modern Standard for Client Submission

Port 587 was introduced specifically to give mail providers a way to accept authenticated mail submission from their own users' clients and applications, entirely separate from the anonymous, relay-oriented traffic port 25 handles. Because it's explicitly the "submission" port defined in RFC 6409, and because it requires authentication by convention and design, it was never subject to the same widespread abuse pattern that led to port 25 being blocked — a spammer with a compromised machine generally can't do anything useful with port 587 without also having valid, authenticated credentials for a legitimate mail account, which raises the bar for abuse considerably compared to port 25's traditionally open relay model. This is precisely why port 587 remains, today, the most broadly recommended default for any new application or client configuration needing to send mail through a provider, and why it's rarely blocked on outbound client networks the way port 25 commonly is.

Port 465: From Deprecated to Recommended

Port 465's history is the most winding of the four. It was originally registered for SMTPS (SMTP over SSL) using implicit encryption — the connection starts encrypted immediately, with no plain-text negotiation phase at all. For a period in the early 2000s, the IETF formally deprecated this approach in favor of STARTTLS-based negotiation on port 587, reasoning that a single, unified submission port with negotiated encryption was cleaner than maintaining two separate ports for essentially the same purpose. However, implicit TLS has a specific security advantage STARTTLS negotiation doesn't automatically share: since encryption begins from the very first byte, there's no window during which a network attacker could attempt a STARTTLS-stripping downgrade attack, tricking a client into believing STARTTLS isn't available and falling back to an unencrypted session. This specific vulnerability class, combined with implicit TLS's inherent simplicity, led to a formal reversal: RFC 8314, published considerably later, explicitly recommends implicit TLS (port 465) as the preferred approach going forward, restoring 465 to fully recommended status alongside 587 rather than treating it as a legacy option.

Port 2525: The Pragmatic Workaround

Port 2525 isn't part of any official standard at all — it exists purely as a practical convention that a number of major mail providers have independently adopted as an additional submission option, specifically for situations where a network's outbound filtering is aggressive enough to block even port 587 and 465, which does happen on some unusually restrictive corporate networks, certain shared hosting environments, and a handful of countries with broad network-level mail port restrictions. Because 2525 isn't a widely recognized "mail port" the way 25, 465, and 587 are, it's statistically much less likely to appear on any given firewall's block list, making it a useful practical fallback precisely because of its obscurity rather than any technical property distinguishing it from the standard ports. It's worth noting explicitly that this obscurity-based protection is not a permanent guarantee — as 2525 has become more widely known and used specifically as a mail-blocking bypass, some more sophisticated or actively maintained firewall configurations have begun including it in their default block lists too, somewhat eroding its original advantage over time in the most restrictive environments.

Full Comparison Table

PortEncryption ApproachTypical Authentication RequirementWhen to Use It
25Optional STARTTLS, often used unencrypted for relayGenerally none for server-to-server relayOnly for actual mail server relay software, never for application/client submission
587STARTTLS (explicit, negotiated)Required by virtually all providersDefault recommended choice for new client/application configuration
465Implicit TLS (immediate)Required by virtually all providersEqually recommended alongside 587; preferred where downgrade-attack resistance matters
2525Varies by provider, often matches 587's STARTTLS conventionRequired, same as 587Fallback when 25/465/587 are all blocked on a specific restrictive network

How to Decide Which Port to Use, Practically

For the overwhelming majority of real-world situations — a new application sending transactional mail, configuring a mail client for the first time, setting up a monitoring system's alert emails — port 587 with STARTTLS is the correct default choice, full stop, unless your specific provider's documentation explicitly directs otherwise. If your provider or use case specifically calls for implicit TLS, or you want the marginal additional protection against STARTTLS downgrade attacks, port 465 is an equally valid and increasingly recommended alternative. Reach for port 2525 only when you've confirmed, through actual testing, that both 587 and 465 are genuinely blocked on the specific network you're working from — it shouldn't be your starting point, since it's explicitly a fallback rather than a preferred standard. Port 25 should essentially never appear in application or client configuration at all unless you are specifically building or administering mail relay infrastructure itself, a meaningfully different use case than sending mail through an existing provider — and if you find yourself unsure which category your own situation falls into, it almost certainly falls into the former (use 587 or 465) rather than the latter, since genuine relay infrastructure is a comparatively rare, specialized undertaking most teams never actually need to build themselves.

Provider-Specific Port Support Patterns

Provider TypePorts Typically Supported for Client SubmissionNotes
Major consumer providers (Gmail, Outlook.com)587 and 465Both fully supported; OAuth increasingly required alongside either
Transactional email services (SendGrid, Mailgun, etc.)587, 465, and often 2525 as an explicit fallback2525 specifically offered because customer networks vary widely in their outbound filtering
Self-hosted mail serversConfigurable — administrator decides which ports to enableSecurity posture depends entirely on the administrator's own configuration choices
Corporate/enterprise mail (Microsoft 365, Google Workspace)587 and 465, often requiring Modern Authentication (OAuth)Increasingly restrictive around basic password authentication regardless of port

A Deeper Look at Why Port 25 Blocking Became So Widespread

The scale and consistency of outbound port 25 blocking across the internet today is the result of a fairly specific historical arms race worth understanding in more detail, since it explains why this particular restriction is so much more universal than blocking on any other mail-related port. In the early-to-mid 2000s, as broadband internet access became widespread among residential users, compromised home computers (via early botnets and worms) became an enormously effective spam-sending platform — a single piece of malware could turn thousands of residential machines, each with their own unrestricted outbound port 25 access, into a distributed spam-sending network far harder to block at the destination than a small number of centralized, identifiable spam sources would have been. ISPs, facing mounting pressure from mail providers threatening to blocklist their entire IP ranges due to spam volume originating from their residential networks, responded by blocking outbound port 25 by default for residential customers, forcing legitimate mail to route through the ISP's own outbound mail relay (or a third-party provider) instead of direct peer-to-peer delivery from a home connection. This turned out to be remarkably effective at reducing botnet spam volume, and the practice spread from ISPs to cloud hosting providers facing an analogous problem with disposable, easily-provisioned virtual machines being used the same way. The restriction has persisted and become close to universal not because the original botnet threat remains identical today, but because the blocking has proven durably effective at reducing a whole category of abuse with minimal cost to legitimate users, who were never supposed to be sending mail directly via port 25 from a client machine in the first place.

How to Request a Port 25 Exception When You Genuinely Need One

For the relatively rare legitimate use case that genuinely requires outbound port 25 access — typically running actual mail relay infrastructure rather than simply sending application mail through an existing provider — most major cloud platforms offer a formal process to request an exception, though it typically requires demonstrating a legitimate use case and passing some level of account verification. The process generally involves submitting a support request explaining the specific use case, confirming the account has a verified payment method and reasonable account history (to filter out disposable, freshly created accounts most likely to be abuse attempts), and sometimes providing documentation about the intended mail volume and use case. Approval isn't guaranteed and can take anywhere from same-day to several business days depending on the provider and the specifics of the request. Given this friction, and given that the overwhelming majority of legitimate mail-sending use cases don't actually require port 25 at all (client submission through 587/465 covers nearly everything), it's worth genuinely confirming you need port 25 specifically — rather than simply defaulting to requesting it — before going through this process.

Historical Timeline of SMTP Port Evolution

EraDevelopmentDriving Factor
1982Port 25 established in original SMTP specification (RFC 821, later RFC 5321)No authentication or spam concerns yet — trusted, cooperative network model
Late 1990sPort 465 registered for SMTPS with implicit TLSEarly recognition of the need for encrypted mail submission
Early 2000sIETF formally deprecates port 465 in favor of STARTTLS on 587Preference for a unified submission port over maintaining two separate approaches
Mid-2000sRFC 6409 formalizes port 587 as the dedicated message submission portGrowing spam abuse driving separation of relay (25) from authenticated submission (587)
Mid-2000s onwardWidespread ISP and later cloud provider blocking of outbound port 25Botnet-driven spam abuse from residential and cloud-hosted compromised machines
2010sPort 2525 emerges as an informal provider conventionIncreasingly aggressive network-level filtering blocking even 587/465 in some environments
2018RFC 8314 formally reverses course, recommending implicit TLS (465) over STARTTLS where practicalRecognition of STARTTLS downgrade attack risks; renewed preference for implicit TLS's simplicity

This timeline illustrates that today's port landscape isn't the result of a single coherent design decision, but rather several rounds of course-correction in response to real-world security and abuse patterns as they emerged — useful context for understanding why the "right" answer has genuinely changed more than once, and why documentation from different eras can give conflicting recommendations if you're not paying attention to when it was written.

Port Selection for Specific Application Frameworks and Libraries

Most mainstream programming language ecosystems ship with SMTP client libraries that default to sensible, modern port and encryption choices, but it's worth explicitly verifying rather than assuming, since defaults do vary and some older libraries still default to configurations that predate the RFC 8314 shift toward implicit TLS. When configuring an SMTP client library — whether it's Python's smtplib, Node.js's nodemailer, PHP's PHPMailer, or a language-specific equivalent — explicitly specify both the port and the corresponding encryption mode (STARTTLS versus implicit TLS) rather than relying on a library default, since a mismatch between the port you specify and the encryption mode the library assumes for that port is a common, easily overlooked source of connection failures that have nothing to do with the actual mail provider or network at all. Most well-maintained libraries document their expected port/encryption pairing clearly, and cross-referencing that documentation against the guidance in this article before deploying a new integration avoids an entire category of avoidable configuration errors, particularly the specific failure mode where a library defaults to an outdated port/encryption pairing left over from before RFC 8314's shift toward implicit TLS, silently producing a working-but-suboptimal or occasionally outright broken configuration that only surfaces once traffic reaches a network with unusually strict filtering.

Testing Which Ports Are Actually Reachable From Your Network

Documentation can tell you which ports a provider supports in principle, but only an actual, live connection test tells you which ports are genuinely reachable from your specific network right now — the two aren't always the same, since your own network's outbound filtering is an independent variable the provider's documentation can't account for. Use the SMTP Tester to generate the exact connection commands for each port and run them from your actual terminal, rather than assuming compatibility based on documentation alone. A quick, systematic test across all relevant ports takes only a few minutes and definitively answers the "which port should I actually use from here" question far more reliably than any general guidance can.

Port Numbers Below 1024: Why They Require Elevated Privileges to Bind

An operational detail worth understanding if you're ever setting up mail server software yourself rather than just consuming a provider's service: port 25, along with all "well-known" ports below 1024, traditionally requires elevated (root or administrator) privileges to bind on Unix-like and Windows systems respectively — a security convention dating back to an era when only trusted, administrator-controlled processes were meant to offer services on these standardized, low-numbered ports. This has a practical consequence for anyone deploying mail server software: the mail service process typically needs to either run with elevated privileges initially (then often drop them after binding, a common security pattern), or use an OS-specific capability-granting mechanism to bind to port 25 without running the entire process as root throughout its lifetime. Ports 587, 465, and 2525 — all above the 1024 threshold — don't carry this same restriction, meaning a service can bind to them without elevated privileges at all, which is a minor but real operational difference between running server software that needs port 25 versus one that only needs the higher submission ports.

How NAT and Port Forwarding Complicate Self-Hosted Mail Servers

Anyone running a mail server from a home or small office network, behind a typical consumer router performing Network Address Translation, faces an additional layer of port-related complexity beyond simple outbound blocking. Incoming mail delivery to a self-hosted server requires port 25 to be explicitly forwarded from the router's public IP address to the internal server's private IP address — without this forwarding rule configured correctly, no incoming mail can reach the server at all, regardless of whether the server software itself is configured correctly. This is a common point of confusion for anyone new to self-hosting mail: the server's own software configuration can be entirely correct, and mail still won't arrive, purely because the network-level port forwarding step was missed or misconfigured. Additionally, many residential ISPs block inbound port 25 entirely, separate from and in addition to any outbound blocking discussed earlier, making genuinely self-hosted mail service from a typical residential internet connection considerably more difficult than it might initially appear, and explaining why most legitimate mail hosting happens from data center infrastructure rather than home connections even for relatively small-scale operations.

Comparing SMTP's Port Model to Other Protocols

ProtocolStandard Port(s)Encryption ModelSimilarity to SMTP's Evolution
HTTP/HTTPS80 (plain), 443 (TLS)Separate ports for plain vs encrypted, similar to SMTP's 25/465 splitAlso saw an industry-wide push toward defaulting to the encrypted port over time
FTP/FTPS21 (plain), 990 (implicit TLS), or STARTTLS on 21Nearly identical dual-approach history to SMTP's STARTTLS vs implicit TLS splitFTP faced very similar debates over implicit vs explicit TLS negotiation
IMAP/IMAPS143 (plain/STARTTLS), 993 (implicit TLS)Directly parallel to SMTP's 587/465 relationship for mail retrieval rather than sendingSame underlying protocol family, same historical encryption evolution pattern
POP3/POP3S110 (plain/STARTTLS), 995 (implicit TLS)Same dual-port pattern as IMAP and SMTPReinforces that this plain/implicit-TLS port pairing is a broader email protocol family convention, not SMTP-specific

Recognizing this pattern across the broader email protocol family — SMTP for sending, IMAP and POP3 for retrieval — helps clarify that the plain-port-plus-encrypted-port (or STARTTLS-versus-implicit) convention isn't an SMTP-specific quirk but a broader design pattern the entire email protocol ecosystem converged on during roughly the same historical period, for largely the same underlying security reasons.

Port Considerations for High-Volume Sending Infrastructure

Organizations sending mail at meaningful scale — beyond a single application's transactional notifications, into genuine bulk or marketing email territory — often work with dedicated sending infrastructure where port considerations extend beyond simply picking 587 versus 465 for a single connection. High-volume senders frequently maintain connection pools across multiple concurrent SMTP sessions, sometimes distributed across multiple sending IP addresses for reputation management purposes, and need to ensure their chosen port and encryption configuration performs reliably under sustained concurrent load rather than just a single test connection. Some high-volume sending platforms specifically document performance or connection-limit differences between their supported ports, worth checking directly with your specific provider if you're operating at a scale where these details might matter, since guidance aimed at typical low-volume application sending doesn't always account for the different operational considerations at genuine bulk-sending scale.

Expert Tips for Port Configuration

💡
Default to 587, Fall Back to 465
Start with port 587 and STARTTLS for new configurations; if you specifically want implicit TLS's downgrade-attack resistance, 465 is an equally solid, fully supported alternative.
💡
Never Configure Port 25 for Application Sending
If your application configuration references port 25 for outbound sending, that's almost always a mistake — reserve 25 exclusively for actual server-to-server relay infrastructure.
💡
Keep 2525 as a Documented Fallback, Not a Default
Note it in your configuration documentation as the fallback for restrictive networks, but don't make it your primary configuration when 587 and 465 both work fine.
💡
Test From Production, Not Just Development
Outbound port availability commonly differs between a development machine and actual production infrastructure (especially cloud servers) — always confirm port reachability from the environment that will actually be sending mail.

Final Word: The Port Decision Is Rarely the Hard Part

After walking through this much history and nuance, it's worth stepping back and stating the practical conclusion plainly: for the large majority of real situations, the port decision itself is genuinely simple — use 587 with STARTTLS, or 465 with implicit TLS, and move on. The value in understanding the full history and reasoning behind each port isn't that it changes this basic recommendation, but that it equips you to diagnose the exceptions correctly when something doesn't work as expected: recognizing a cloud provider's default port 25 block for what it is rather than assuming a server misconfiguration, knowing when reaching for port 2525 is a reasonable fallback rather than a sign something is fundamentally wrong, and understanding why a decade-old tutorial recommending port 465 as "deprecated" is simply out of date rather than technically correct. The port itself is rarely where real mail delivery problems originate once you're using one of the two modern standard choices — authentication, DNS, and server-side policy far more commonly explain a persistent issue, which is exactly why the companion guides linked below go deeper into each of those areas specifically.

Real-World Use Cases

📧
Configuring a New Transactional Email Integration
Choosing port 587 as the default for a new application integration, with 465 documented as the fallback if the provider or network requires it.
☁️
Diagnosing a Cloud Server's Blocked Outbound Mail
Discovering that a newly provisioned cloud instance can't send mail on port 25 by design, and reconfiguring the application to use port 587 through a proper relay provider instead.
🏢
Working Around a Restrictive Corporate Network
Falling back to port 2525 for a specific integration after confirming, through direct testing, that the corporate network blocks 587 and 465 outbound as well.
🛡️
Hardening a Mail Client Configuration
Migrating an existing STARTTLS-on-587 configuration to implicit TLS on 465 specifically for its resistance to downgrade attacks, as part of a broader security hardening initiative.

Related Reading

For the TLS/SSL mechanics that determine how each of these ports actually encrypts traffic, see SMTP TLS vs SSL. For the authentication layer that runs on top of ports 587 and 465, read SMTP Authentication. For how port 25 specifically functions in relay scenarios, see SMTP Relay. For diagnosing a specific port that isn't working as expected, read SMTP Connection Errors and SMTP Troubleshooting. To test which ports are actually reachable from your own network right now, use the SMTP Tester.

Reviewed by: ToolsNovaHub Editorial Team📅 Last updated: August 2026📜 Sourced from: RFC 5321, RFC 6409 (Message Submission) and RFC 8314 (implicit TLS recommendation)

ToolsNovaHub tools are built and independently maintained with a focus on accurate, no-signup network and security utilities. Spotted an error? Let us know.

📋 Related Tools & Guides Comparison

ResourceTypeLink
SMTP TesterToolOpen Tool →
MX LookupToolOpen Tool →
Open Port CheckerToolOpen Tool →
SMTP TLS vs SSLGuideRead Guide →
SMTP AuthenticationGuideRead Guide →
SMTP RelayGuideRead Guide →
SMTP TroubleshootingGuideRead Guide →

Frequently Asked Questions

Port 587 with STARTTLS is the current standard recommendation for authenticated client submission in almost every situation — it's widely supported, not blocked by default on most networks, and represents the modern, security-conscious choice most providers expect. Port 465 with implicit TLS is an equally valid alternative if your provider specifically supports and recommends it.
Port 25 remains the standard for server-to-server mail relay — the connection between mail servers actually delivering messages to their final destination, not typically used by end-user clients or applications submitting mail through a provider. It's blocked outbound on many client networks specifically to prevent spam relay abuse from compromised machines.
It was briefly considered deprecated in favor of STARTTLS-based port 587 during the 2000s, but has since seen a strong resurgence and is now fully supported and recommended by major providers, particularly because its implicit TLS model avoids a specific class of STARTTLS downgrade attack that a poorly implemented client or network could otherwise be vulnerable to.
Port 2525 isn't an officially standardized SMTP port but has become a de facto alternative offered by many providers specifically as a fallback when 25, 465, and 587 are all blocked by a restrictive network — useful in some hosting and corporate environments with unusually aggressive outbound filtering.
Yes, and this is extremely common — a single mail server frequently listens simultaneously on port 25 for incoming relay, and separately on 587 and/or 465 for authenticated client submission, each configured with different rules around authentication requirements and TLS handling.
They represent two different historical approaches to achieving the same underlying goal (encrypted transport) — STARTTLS negotiates encryption after an initial plain connection, while implicit TLS on 465 encrypts from the very first byte. Port 587 conventionally uses STARTTLS by convention, though the port itself doesn't strictly enforce which approach is used.
Not automatically — port 587 conventionally expects STARTTLS to be negotiated, but a client or server could theoretically connect without ever issuing the STARTTLS command, resulting in an unencrypted session on that port. A properly configured, security-conscious server should refuse to accept authentication over an unencrypted 587 connection.
Incoming mail delivery to your own mail server happens on port 25, the same port used for general server-to-server relay — this is distinct from the ports (587/465) your own outbound-sending applications or mail clients use to submit outgoing mail through a provider.
To prevent their infrastructure from being used for spam, since compromised or maliciously provisioned accounts on shared or cloud hosting have historically been a significant source of spam traffic — many providers require an explicit request or a verified account status before allowing any outbound mail ports at all.
Once TLS is successfully established on either port, the resulting encrypted connection offers equivalent protection — the meaningful difference is in the negotiation process itself, not the strength of the resulting encryption, assuming both are configured with current, non-deprecated TLS versions.
Not based on the port number alone — a firewall can only see that traffic is directed at a specific port, not whether the specific connection attempt is legitimate mail traffic or something else entirely, which is why port-based blocking is a blunt instrument compared to more sophisticated, content-aware filtering.
These represent the different port and encryption negotiation combinations covered throughout this guide — 'SSL' in a client's settings usually maps to implicit TLS on port 465, while 'TLS' or 'STARTTLS' usually maps to explicit negotiation on port 587, and the client needs to know which convention to expect for that specific port.
No — a client submitting mail outbound through port 587 or 465 only needs outbound access to be allowed; no inbound rule is needed unless you're also running a server that needs to receive incoming connections on those or other ports.
You'll typically get a connection refused error (if nothing is listening there) or a protocol mismatch error (if something is listening but doesn't speak the protocol you're attempting), neither of which indicates a genuine network problem — just a mismatch between the port you tried and what that server actually offers there.
Generally yes when offered explicitly by a reputable provider as a documented fallback option — it's not inherently less secure than 587 or 465, since the security properties come from the TLS and authentication configuration, not the specific port number chosen.
Check the provider's own documentation directly, since supported ports and their exact encryption expectations (STARTTLS vs implicit TLS) vary by provider and can change over time — don't assume a configuration that worked for one provider automatically applies to another.
Port openness (a successful TCP connection) and authentication success are two entirely separate layers — a port test only confirms the network path and service are reachable, saying nothing about whether the credentials or authentication mechanism you're using will actually be accepted.
Use a dedicated SMTP testing tool that generates the correct connection commands for each standard port, then run them yourself from a terminal — a live, real connection attempt is the only way to know for certain, since port availability can't be reliably inferred from documentation alone.