Summary

This SMTP test tool builds a ready-to-run swaks, curl, or openssl command from your host, port, security mode, and authentication method. It also flags mismatches such as STARTTLS on port 465 before you waste a debugging round. It runs in your browser and never sees your password. Run the command from your own terminal and read the reply codes to find where the connection fails.

SMTP test tool: build the command, then run it

Enter your host, port, and security mode. Get a swaks, curl, or openssl command that tests the real server from your own terminal. Nothing leaves your browser.

SMTP test command builder

Pick a preset or fill in your own server. The command and any configuration warnings update as you type.

No password field on purpose. The command reads it from a SMTP_PASS shell variable, so it never touches this page or your shell history.

    Run this in your terminal

    Then type this in the open session

    Reply codes worth recognising
    • 220 greeting, 250 accepted, 235 authenticated, 354 send the message body, 221 closing.
    • 530 authentication or STARTTLS required first. 535 credentials rejected.
    • 454 TLS not available right now. 421 service unavailable, try later.
    • 550 or 554 the message or an address was refused by policy.
    How it works

    What the builder checks before you run anything

    Port and security must agree

    Port 587 is the submission port and expects STARTTLS. Port 465 expects TLS from the first byte, as set out in RFC 8314. The builder compares your port to your security mode and warns when they disagree, which is the most common cause of a hung handshake.

    One command per client

    swaks, curl, and openssl s_client express the same exchange in different flags. The builder maps your settings to each one, including the STARTTLS flag, the TLS-on-connect flag, and the AUTH mechanism, so you do not have to remember which tool spells it which way.

    Credentials stay out of the page

    There is no password input. The commands read SMTP_PASS from your shell, and the manual openssl session shows how to base64-encode it yourself. Hostnames and addresses are validated before they reach the command, so a stray quote cannot change what runs.

    Why a command, not a button

    A browser cannot open an SMTP connection

    Web pages cannot open raw TCP sockets, so any site that claims to test SMTP from a browser is either running the connection from its own servers or not testing at all. Running it from your terminal is the better test anyway. You see what your network, your firewall, and your resolver see when your application sends mail. That is the same reason we read SMTP replies off a trace rather than a status badge. The reply code and its text tell you which stage failed.

    • 220 means the TCP connection and the greeting worked
    • 250 after EHLO lists what the server offers, including STARTTLS and AUTH
    • 235 means the credentials were accepted
    • 250 after the final dot means the message was queued, not delivered
    Developer desk with a laptop showing a terminal and a notebook sketch of a mail flow

    Read the failure in the order it happens

    SMTP fails in stages. Find the stage first, then fix that stage and nothing else.

    1. 1

      No greeting at all

      The connection timed out or was refused. Check the hostname, the port, and outbound firewall rules. Many cloud networks block outbound port 25 by default, so test 587 or 465 instead.

    2. 2

      Greeting, then a TLS error

      The security mode does not match the port. Switch between STARTTLS and implicit TLS, or read the certificate with the openssl command to see what the server presents.

    3. 3

      TLS works, authentication fails

      A 530 means the server wants STARTTLS or AUTH first. A 535 means it rejected the credentials. Check for API keys, app passwords, and whether the username must be a full address.

    4. 4

      Authenticated, message refused

      A 550 or 554 after RCPT TO or DATA is a policy answer. Check that the sender domain is verified with the provider and that the recipient address is valid.

    SMTP test tool questions

    Is this SMTP test tool free?
    Yes. No signup, no request limit. The command is built in your browser and nothing you type is sent to our servers. The only thing that leaves the page is the anonymous tool-run beacon.
    Does it connect to my SMTP server?
    No. A browser cannot open a raw TCP connection, so a page cannot speak SMTP by itself. The tool builds the exact command, you run it from your own terminal, and the result reflects your network and your server, not ours.
    Why is there no password field?
    Because the password never needs to pass through this page. The commands read it from an SMTP_PASS shell variable that you set yourself. That keeps it out of the page, out of the clipboard history of a web form, and out of the command line you paste into a ticket.
    Which port should I test first?
    Start with 587 and STARTTLS, the standard submission setup. If your provider documents 465, test that with implicit TLS next. Use 25 only for server-to-server delivery, since many networks block outbound 25 and a timeout there tells you little.
    The connection times out before any 220 greeting. What does that mean?
    The TCP connection never completed, so no SMTP rule is involved yet. Check the hostname, the port, and whether your network or cloud provider blocks outbound SMTP. Run the same command from a second network to separate a local block from a server problem.
    What does a 535 reply mean?
    The server reached the authentication step and rejected the credentials. Look for an app-specific password or API key requirement, a username format that expects the full address, or an auth mechanism the server does not offer. Try the other AUTH option in the tool and compare.
    When should I use swaks, curl, or openssl?
    swaks gives the clearest transcript of an SMTP exchange and is the best default. curl is already installed almost everywhere and is handy on a locked-down box. openssl s_client is for reading the certificate and typing the protocol by hand when you need to see each reply.
    Does a 250 after DATA mean the email will reach the inbox?
    No. It means the server accepted the message for queuing. Inbox placement depends on SPF, DKIM, DMARC alignment, domain reputation, and content, none of which an SMTP handshake test can see.

    Track the sends behind your own SMTP tests

    A passing handshake is the first check, not the last one. Notification Harbor adds trace-level observability per send, domain warmup, and SPF, DKIM, and DMARC set up before the first production send.

    notificationharbor
    Start free