In transactional email, there’s a lot going on behind the scenes to ensure your emails get sent and recipients receive your most important messages in a timely manner. SMTP is one protocol that facilitates this.
But what are SMTP relays and how do they fit in? In this guide, we’ll break down how SMTP relay servers ensure your messages get from A to B (and all the places in between!). Ready? Let’s go!
What is an SMTP relay?
An SMTP relay is an email service that routes high volumes of email messages through SMTP servers so they don’t end up in the spam folder.
SMTP stands for Simple Mail Transfer Protocol. SMTP is a communication protocol and is the industry standard used to route high volumes of email messages through SMTP servers to send, receive and relay emails over the Internet.
A relay, or mail relay, describes the zig-zag process of passing an email from one email server to another until it reaches the recipient.
How does an SMTP relay work?
When an email is sent, it needs to follow a complicated route and jump through a couple of hoops before it magically lands in your recipient’s inbox.
When you click “send” in your email app or Mail User Agent (MUA), your email is sent to your server’s Mail Submission Agent (MSA). It checks your email for correctness, including missing “To” fields, before passing it to a Mail Transfer Agent (MTA).
The MTA checks the Mail Exchange (MX) records of the recipient’s domain. This tells the email which server it should go to. Your email follows this route and is transferred to another MTA before it is accepted by a Mail Delivery Agent (MDA).
The MDA receives your email, converts it to a readable format and then passes it to the recipient’s MUA. After this complex journey (which lasts only seconds!), your email then finally appears in the inbox of the recipient’s email app!
OK, so what’s an SMTP relay service?
Implementing SMTP and executing the mail relay process requires a complex sending infrastructure. Rather than try to do this themselves, businesses can choose an SMTP relay service to do all the hard work for them.
SMTP relay services or email service providers deliver the sender’s email messages by routing them via a trusted third-party, ensuring they reach their destination in a safe, secure and reliable way. SMTP services like MailerSend are typically used for sending transactional emails, for example, welcome emails, one-time passwords and shipping notifications.
Try MailerSend’s SMTP relay service
Sign up now and get 12,000 emails/month for free!
Why you need a third-party SMTP relay service
An SMTP relay service takes all the hassle out of transactional email and improves your deliverability. Here’s how:
Scale your email sendings
Popular web hosts and webmail providers like GoDaddy and Outlook.com routinely impose sending limits on their SMTP servers. These limits range from 300 to 500 emails per day, with some putting a further restriction of 100 recipients per email!
While these restrictions are meant to discourage spammers, they can have a detrimental impact on your customer experience if your email takes several hours to be delivered.
Using a hosted SMTP relay service to send mass emails on your behalf solves these sending limitations by providing a generous sending quota every month. Also, you can control the cost of scaling by paying as you go or by subscribing to a monthly plan if you’re a high-volume sender.
Protect your sending reputation
Behind every domain name is an IP address from which emails are sent. Web hosting companies often share one IP address among several hundred websites on a single server. That means you are likely sharing an IP address with other domains!
If you are sharing an IP address, your sending score is affected by the actions of other websites on the server. There are two ways you can regain control: by using a dedicated IP address or by using a third-party SMTP relay service.
A trusted SMTP relay provider protects your sending reputation and thus avoids email deliverability issues. The use of clean IP addresses ensures that you stay off email blocklists, while comprehensive filters make sure that no spam leaves your IP address.
Authenticate your emails
Email spoofing is used in spam and phishing attacks where an email header is changed to make it look like it was sent from a trusted sender. So how do popular Internet Service Providers (ISPs) like Gmail, Yahoo and Outlook.com know that the sender of an email is authentic?
Email security protocols like SPF, DKIM and DMARC are used to authenticate your emails. These records prove that you’re legitimate, that your identity hasn’t been compromised, and that you’re not sending emails for someone else.
Adding these protocols to your DNS records, however, is tricky if you want to ensure that your emails reach the inbox and not the spam folder. Setup instructions and support can vary a lot between SMTP servers from webmail and hosting providers.
An SMTP relay provider like MailerSend automatically generates optimized authentication records for you. A custom return-path is even provided to receive bounced emails and to further protect your sending reputation.
Save time and effort
Installing your own email server is hard work. Complex settings need to be configured and you need to ensure 24/7 uptime and secure your systems against malicious hackers.
Leave it to email experts to manage a hosted SMTP relay service. Dedicated technical teams will take care of optimizing the server for performance and deliverability, while you can get support when you need it most from a 24/7 customer support team.
Monitor and optimize for performance
When you send emails through your regular ISP, how do you assess the performance of your outbound emails? Other than bounced email replies, basic reporting and analytics may be lacking with SMTP servers from webmail providers and web hosts.
In order to maintain a good customer experience and identify sending issues, you will want to know email sending metrics like:
Was your email delivered to the recipient?
Why did your emails bounce?
How many recipients opened their emails and how many clicked through?
Did anyone unsubscribe or mark your email as spam?
An SMTP relay provider like MailerSend can provide you with a real-time feed of your recipient activity. Troubleshoot sendings by filtering results and monitor email metrics like opens, clicks and unsubscribes to improve engagement and email delivery rates.
Sending emails using MailerSend
Setting up MailerSend for your outgoing emails is easy; you only need to plug in 4 pieces of information to your website, app or device! Here’s how to get started:
Retrieve your SMTP details
Navigate to the Domains page and find the domain name that you wish to send SMTP mail from. Click on Manage next to the domain name.
Scroll down to the SMTP section and toggle Send emails using our SMTP servers instead of our REST API on to enable SMTP.
Enabling this will automatically generate the following four pieces of information:
Server (SMTP host)
If you need to select encryption in your app, select Transport Layer Security (TLS) or STARTTLS. This is a newer and more robust protocol than Secure Sockets Layer (SSL) for secure email sending.
Set up SMTP email for your email client or app
We’ll use Thunderbird, a free and open-source email client, as an example here. Go to File, New, and then select Existing Mail Account…
Enter your name and email address, and click on Configure manually…. This will show additional SMTP fields for outgoing emails.
Enter the following information from MailerSend:
SMTP username and password
Test your SMTP configuration by clicking on Re-test. Once verified, click Done to complete the setup. You can now send emails through an SMTP relay service!
Set up SMTP email for WooCommerce and WordPress
Your WooCommerce store depends on WordPress to send emails. WordPress itself uses SMTP plugins to send emails via an SMTP server. We’ll show you how it’s done in WordPress with the popular WP Mail SMTP plugin.
Find WP Mail SMTP in the WordPress Plugin Directory or upload the plugin to your server. Once installed, activate it and then go to WP Mail SMTP in the WordPress admin. Choose Other SMTP and you’ll see the following page.
Enter your SMTP details from MailerSend:
SMTP Host: smtp.mailersend.net
Type of Encryption: STARTTLS
SMTP Port: 587
SMTP Authentication: Yes
SMTP username and password
Click Save Changes when done.
Congratulations! You have just improved the sending reliability of your WordPress emails by using a cloud-based SMTP email server.
Unleash your email sendings with SMTP relay
With a third-party SMTP relay service, you can send large volumes of email without the hassle of coding or setting up a server. Pick a trusted email provider (hint: MailerSend) who can help you land in the inbox, protect your sending reputation, and improve your email performance.
Have you ever set up an SMTP server on your own? How did it go? Share in the comments!
Ready to elevate your transactional email?
Try MailerSend’s SMTP relay service for free. Start with 12,000 emails/month for free then pay as you go!
Editor’s note: This post was originally published in February 2021. We've now updated it with additional information.