SMTP server

An SMTP server is the software that accepts outgoing email from a client and relays it toward the recipient's mail server. It authenticates the sender, looks up the destination domain's MX records, and hands the message on, following the transaction defined in RFC 5321.

VerifiedBy Kam Low, Co-founder·Updated

How an SMTP server works

An SMTP server does two distinct jobs that often run on the same machine. Submission accepts mail from an authenticated client, which is your application or mail app connecting on port 587. Relay passes mail between servers on port 25, unauthenticated, on the strength of the sending domain's reputation and DNS records.

At 100,000 contacts, 2 sends a month
Transport only≈ $160/mo$0.80 to 1.00 per 1,000
Full-service platform$400 to 600per month, same volume
70 to 80% cheaper
Paid for indeliverability monitoring·bounce handling·template management
The saving is real. It is paid for in work the platform was doing for you.

The server confirms the sender is permitted, queues the message, resolves the recipient domain's MX records, and attempts delivery. Temporary failures come back in the 4xx range, and the server retries those on a schedule. Anything in the 5xx range is permanent, which ends the attempt and generates a delivery status notification back to the return path.

Common network ports

Port 587 is the submission port and the correct default for an application. It expects authentication and a STARTTLS upgrade, specified in RFC 3207.

Port 465 carries implicit TLS, where the connection is encrypted before any command is sent. It was deprecated and then reinstated as a recommended submission port by RFC 8314, which is why guidance written between those dates contradicts itself.

Port 25 is for server-to-server relay, not submission. Most cloud and residential providers block it outbound to limit spam, so an application attempting to send on port 25 usually fails with no useful error at all.

Key benefits of dedicated SMTP relays

A dedicated relay separates application mail from mailbox mail. The relay authenticates as your domain rather than as a person's mailbox, which removes the per-mailbox sending limit and gives you a reputation attached to a domain you control. A customer-owned domain gives you portable reputation and direct control; we see the deliverability and trust benefit in our own data. Nitrosend can also prepare a protected sender under your brand subdomain on demand, but neither path uses a personal Gmail account or an unverified shared fallback. Verify a subdomain rather than the apex: it isolates DNS and sending reputation from the corporate inbox living on your main domain.

The other three benefits are operational rather than protocol-level: delivery logs and bounce classification per message, suppression handling so a hard bounce is not retried into a reputation problem, and authentication managed as configuration rather than per-client setup.

Bounce classification is the distinction that does the work. A hard bounce is a permanent failure, typically a mailbox that does not exist, and the address should be suppressed immediately. A soft bounce is temporary, such as a full mailbox or a throttled server, and warrants retrying on a backoff. Treating the two identically is how senders either discard recoverable addresses or repeatedly send to dead ones.

The choice between a shared and a dedicated IP is the other decision. Shared pools carry an established reputation built by every sender on them, which helps a new sender and exposes them to others' behaviour. Isolating reputation entirely requires a dedicated IP, warmed from nothing, and that only pays off at sustained high volume.

I will show you what this looks like on infrastructure I run rather than in principle. Behind our own relay, SRS and VERP tie delivery status notifications back to the originating send, ARC carries the authentication verdict validated at ingress across the forwarding hop, and Rspamd inspects the relay's own traffic. The relay port, TCP 2525, is firewall-restricted to our API host, TLS and SMTP authentication are both mandatory, and every one-recipient route and MX snapshot is HMAC-signed so a replayed or altered request is rejected outright.

Running one against renting one

The build-or-rent question usually gets argued on software, and the software is the easy part. Anyone can install a mail transfer agent in an afternoon. What you are actually taking on is reputation management, blocklist monitoring, bounce and complaint processing, DNS authentication, TLS certificate maintenance and abuse handling, indefinitely.

The cost argument is real at scale. George, our CEO, has run the numbers on it. With decent development resources, bringing your own transport and putting a lightweight automation layer on top can cut costs by 70 to 80 percent compared with an all-in-one platform. At 100,000 contacts sending twice a month, transport runs about 0.80 to 1.00 dollars per 1,000 emails, roughly 160 dollars a month, against perhaps 400 to 600 on a full-service platform.

Those figures are the argument for separating transport from the layer above it, not an argument for operating your own server from scratch. Renting transport and owning the automation is a different decision from running the mail server yourself, and it is usually the better trade. It is the trade we built for: Nitrosend documents and supports five transport providers, SendGrid, Postmark, Resend, Mailgun and Amazon SES, so you keep ownership of the sending infrastructure underneath.

Reputation is the part that does not respond to engineering effort. It accrues to the domain and to the sending infrastructure over time, and a new server starts with none. For Gmail specifically, domain reputation matters more than IP reputation, and IP reputation carries roughly a 120-day memory, so a mistake made in the first month is still being paid for in the fourth. Switching between two providers is not instant either. George saw at SmartrMail that Gmail and Outlook take a little while to get used to your mail coming from a different place, usually an email or two, so a migration comparison is never immediate. Ramp the first sends and authenticate the sending domain with SPF and DKIM before volume, and the new reputation starts on the right side.

Dedicated IPs are the clearest case of this being misunderstood. They only start making sense above about a million emails a month, because below that volume there is not enough traffic to establish a reputation on the IP at all, and an unwarmed dedicated IP performs worse than shared infrastructure with an established history.

George's honest summary after a decade of building email tools, including SmartrMail, which sent six billion emails before it was acquired: the server is not the hard part, and treating it as the hard part is how teams end up owning an operational burden that buys them nothing.

Go deeper

First send in thirty seconds.

Simple pricing. Unlimited contacts.

Every plan includes full stack emailing: Flows, Newsletter Campaigns and Transactional Email, plus our NitroWheel LLM and all agent integrations (Claude, ChatGPT, Codex, Cursor and others). Pay for what you send, not who you store.

Free
$0
forever
  • Emails 8,000then 500/mo
  • Email types Transactional & Marketing
  • AI actions 20/mo
  • Contacts Free & Unlimited
  • Brands 3 · Custom domain 1
  • Seats 1
  • Recipients / rolling 24h 100–5,000
  • Email validation Prepaid only
Start free
Ultra
$100
per month
  • Emails 125,000/month
  • AI actions 5,000/mo
  • Brands 10 · Domains 10
  • Seats 10
  • Frontier AI Included
  • Dedicated IP Available
  • Recipients / rolling 24h 1,000–625,000
  • Email validation Prepaid only
Get started
Enterprise
$300
per month
  • AI actions Unlimited
  • Unlimited brands & domains Included
  • SSO / SAML Included
  • 99.9% SLA Included
  • Recipients / rolling 24h Contracted
  • Email validation Prepaid only
Get started

Daily allowances depend on your plan and sender standing. Strong list, domain and delivery evidence can raise standing, including on day one. Trusted receives the full plan allowance; available email credits, safety checks and delivery pacing still apply.

Free forever. No credit card required. See full comparison →