SMTP Relay: What is it and How Does it Work? | Mailjet (2024)

What is an SMTP relay?

An SMTP relay is a protocol that allows email to be transmitted through the internet, from one SMTP server (commonly referred to as a “smart host”) to another. It was first created in 1982 and continues to be the internet standard widely used today.

An SMTP relay is an email relay service that works in two steps:

  • It receives the outgoing email from the sender’s SMTP server (that is, your amazing email campaign).

  • It delivers it to the recipient’s SMTP server.

Simple enough, right? To make things even clearer it might help to define some of the commons terms you’re likely to hear around SMTP relays:

SMTP­ term­inology

Defi­nit­ion

SMTP­ term­inology

SMTP

SMTP­, or Simp­le Mail­ Tran­sfer Prot­ocol, is the lang­uage emai­l serv­ers use to send­ and rece­ive mess­ages. Thin­k of it as the post­al syst­em for the digi­tal worl­d, ensu­ring smoo­th deli­very of your­ elec­tronic lett­ers.

Defi­nit­ion

Open­ rela­y

An open­ rela­y is a mail­ serv­er that­ allo­ws anyo­ne on the inte­rnet to send­ emai­l thro­ugh it, rega­rdless of whet­her they­ are auth­orized user­s or not.­ This­ was once­ a comm­on conf­iguration, but it is now cons­idered a secu­rity risk­ as it can be easi­ly expl­oited by spam­mers and malw­are dist­ributors.

SMTP­ serv­er

An SMTP­ serv­er acts­ like­ the post­ offi­ce for emai­l, send­ing your­ mess­ages to thei­r dest­inations on the inte­rnet. Thin­k of it as the digi­tal mail­ truc­k that­ pick­s up your­ emai­l and deli­vers it to the reci­pient's mail­box.

SMTP­ rela­y serv­ice

With­ an SMTP­ rela­y serv­ice, you'­re tapp­ing into­ a spec­ialized serv­ice prov­ider that­ hand­les all the heav­y lift­ing for you.­ They­'ve got the infr­astructure, the expe­rtise, and the expe­rience to ensu­re your­ emai­ls reac­h thei­r dest­ination reli­ably and secu­rely. It's­ like­ havi­ng a team­ of prof­essional mail­ carr­iers at your­ beck­ and call­.

Smar­t host­

Smar­t host­ and SMTP­ rela­y are used­ inte­rchangeably. Howe­ver, the prim­ary diff­erence is secu­rity: smar­t host­s requ­ire SMTP­ auth­entication (SMT­P-auth) to rela­y emai­ls, wher­eas SMTP­ rela­y does­ not.­

How does the SMTP relay protocol work?

To better understand how an SMTP relay works, let’s imagine the journey that your normal snail mail may take to get to its destination:

SMTP Relay: What is it and How Does it Work? | Mailjet (1)

Email relay is the process of transmitting an email message from one server to another. In the picture above, the local post offices would be the SMTP servers and the email transfer that happens between them is what we call ‘relaying’.

So, for example, when you send out your latest campaign “Cute puppies looking for a foster home”, your company’s SMTP server relays your email to the recipient’s server.

But if you were to send that campaign to someone within your organization’s domain, there would be no ‘email relay,’ as your domain’s SMTP server wouldn’t need to transfer the email to a different SMTP server.

Why is SMTP relay important?

Despite all this talk of SMTP relays and servers, the question remains. How does the SMTP relay process impact my email marketing efforts?

Well, as an email marketer, understanding the SMTP relaying process and its role in bulk emailing is important for several reasons:

Widespread usage

SMTP is one of the most widely adopted protocols for email transmission (along with email APIs). Many senders use it to send and receive emails.

This makes SMTP crucial for ensuring your marketing emails reach their intended audience across various email providers, regardless of their location.

Email campaign performance

SMTP protocol allows email delivery and tracking platforms, such as Mailjet, to more accurately analyze the performance of email campaigns.

Monitoring SMTP response codes can provide insights into the success of your email deliveries, including delivery rates and open and click rates, and identify potential issues that need addressing.

SMTP Relay: What is it and How Does it Work? | Mailjet (2)

Email bounce monitoring

When an email cannot be delivered to the recipient's inbox for various reasons (an email address doesn't exist, the mailbox is full, etc.), the receiving server sends a bounce notification back to the sender.

The SMTP protocol helps email delivery and tracking platforms manage these email bounce messages, allowing you to clean and maintain your email lists to improve deliverability and sender reputation.

SMTP authentication and security

SMTP authentication mechanisms, such as SMTP AUTH, enable you to add basic email authentication protocols such as SPF and DKIM. These help guard your campaigns from email spoofing, spam, and phishing attacks.

Additionally, SMTP uses TLS (Transport Layer Security) - the successor to SSL (Secure Socket Layer) – to encrypt communication between email servers, further enhancing the security of your email communications.

Sending through an SMTP server with an email service provider

So, what does this protocol look like when it comes to an email service provider like Mailjet? Getting the most out of your own SMTP relay server is not easy, so most businesses that need to send mass email to their customers (email marketing campaigns and transactional emails) use SMTP relay for ease of maintenance and added analytics insights.

Sending through an email service provider via an SMTP relay saves companies from having to run their own mail server. As you can see in the diagram below, the business or sender creates the email, and their server routes it through Mailjet’s SMTP server to prepare and send it out to recipients.

SMTP Relay: What is it and How Does it Work? | Mailjet (3)

To combat spam, many webmail providers and email clients (i.e., Gmail, Microsoft Outlook, Yahoo, etc.) put a limit on how many emails you can send to different recipients per day. As businesses who need to communicate en mass with their audience would often exceed this limit, they will require the services of an enterprise level email sending platform – like Mailjet.

An SMTP relay provider can help businesses and organizations deliver large volumes of email without getting them mislabeled as spam or running up against small sending limits.

Email service providers (ESP) invest a lot of resources into building their own email infrastructure to handle large volumes and work closely with the major internet service providers (ISP) and webmail providers to improve email deliverability and deliver these emails straight to the recipient's inbox.

Behind the scenes: SMTP server tracking

There’s an added layer of value to sending through an email service provider. With Mailjet, before our SMTP servers send an email, our system automatically adds link trackers to the body of your message. This then allows you, as the user, to properly track opens and clicks after an email has been received.

Mailjet also translates feedback from ISPs (Gmail, Yahoo, AOL, etc.), since each one communicates in its own way. Our service saves developers time by converting this into an easily identifiable response, displaying whether an email has been delivered or has bounced. These metrics make it easier for you to identify issues that might impact your email deliverability.

Want to know if a third-party SMTP relay service is the choice for your company? Learn more in our Email Infrastructure Handbook.

Choosing an SMTP relay port

Aha! Another tricky aspect of the email world. To understand what SMTP ports are and how they work, we need to take a step back and see what happens when computers communicate with each other on the internet.

Let’s say you are trying to reach mailjet.com. In this case, the Domain Name System (DNS) is converting this to the actual IP address that is hidden behind the name of the site. In Mailjet’s case, this is 104.199.110.216. You could remember 4-5 IPs like ours, but who can remember more, or really…who would want to?

An SMTP port is one that is meant to be used for SMTP connections. Today, the most common SMTP ports are 25, 465, 587, or 2525. This doesn’t mean that they are the only ones, though. These few ports are the most used ones for these types of connection, and because of that they are almost always open, which means you should be able to reach your destination.

Choosing the right SMTP relay port to use is an important consideration when it comes to SMTP. So much so that we devoted an entire blog to this already. If you're trying to decide which port to use, be sure to read our article Which SMTP Port Should I Use? to see which one is best for you.

Wrapping up

Ultimately, SMTP relay makes our lives as marketers much simpler by handling all the heavy lifting in the backend so that we can spend more time crafting content and building out our contact lists.

So, if you’d like to improve your email placement, have greater insights in email performance, and get your emails straight into the inbox, take a look at our SMTP Server.

Mailjet

Send mass email with Mailjet’s free SMTP relay

Send large volumes of email using Mailjet’s free SMTP service. Benefit from great email deliverability and advanced analytics, and improve your email ROI.

SMTP Relay: What is it and How Does it Work? | Mailjet (2024)
Top Articles
Latest Posts
Article information

Author: Horacio Brakus JD

Last Updated:

Views: 6333

Rating: 4 / 5 (51 voted)

Reviews: 90% of readers found this page helpful

Author information

Name: Horacio Brakus JD

Birthday: 1999-08-21

Address: Apt. 524 43384 Minnie Prairie, South Edda, MA 62804

Phone: +5931039998219

Job: Sales Strategist

Hobby: Sculling, Kitesurfing, Orienteering, Painting, Computer programming, Creative writing, Scuba diving

Introduction: My name is Horacio Brakus JD, I am a lively, splendid, jolly, vivacious, vast, cheerful, agreeable person who loves writing and wants to share my knowledge and understanding with you.