What if anyone could send a message, spoof your brand, send from your email account, and damage your mail infrastructure? And what if we told you that spammers can do all of those things if you don’t properly secure your email program?

Spammers have proven time and again that they’re willing to operate on the path of least resistance, which means account security needs to be at an all-time high on your mail server. 

Simple Mail Transfer Protocol (SMTP) remains one of the simplest ways to migrate from an on-premise email server to an Email Service Provider, and, in general, is one of the simpler methods of sending email. (Need a refresher on SMTP? Go here.

SMTP authentication protects your email program from unauthorized use and possible spam. 

Email as a communication channel is only as good as the security you and your service provider put in place to protect your email program. That’s where SMTP authentication comes in.

SMTP authentication not only allows you to leverage the built-in scalability and features of your SMTP service provider, but it also protects your email program and account from unauthorized use and possible spam.

We’ll talk through what SMTP authentication is, why it matters, and how Twilio SendGrid has taken measures to keep SMTP relay secure.

What is SMTP authentication?

SMTP authentication is a method of securing your email sending. It’s used when a client logs in using a supported authentication mechanism by the submission server.

By updating existing outbound email configurations, SMTP authentication is a seamless way for senders to redirect traffic to a secure 3rd party solution.

SMTP authentication on your Twilio SendGrid account

Domain authentication

To authenticate for SMTP, you’ll first need to authenticate your domain. Authenticating with your Twilio SendGrid account credentials is “proving who you are” to SendGrid’s outbound mail server.

Doing so allows Twilio SendGrid to correlate your send request to your account and deploy Sender Policy Framework (SPF) and Domain Key Identified Mail (DKIM) signatures that have been configured for your sending domain. 

SPF allows senders to deploy a Domain Name System (DNS) record that contains a list of authorized IP addresses that mail would be expected from a particular domain. DKIM, is a cryptographic signature used to sign a particular email message to ensure the message has come from an authorized source from this domain.

SMTP account authentication

When sending a message to Twilio SendGrid’s SMTP relay (smtp.sendgrid.net), authentication is required in the form of your account’s API key

Each account or subuser on Twilio SendGrid has its own set of credentials which SendGrid uses to determine which environment a message should be sent from (e.g marketing subuser vs. transactional subuser or production subuser vs. dev subuser). Having this granular control allows for clear segmentation between mail streams and environments for your program to ensure there’s no cross-contamination in sending reputations.

For a step-by-step walk-through on how to send an SMTP email with Twilio SendGrid, go to our docs article

What happens without SMTP authentication?

Without authentication, it’s possible for spammers and bad actors to damage your email program with tactics like email spoofing. Email spoofing is a tactic used by bad actors that are attempting to send mail with a forged sending address that they do not own. 

Without authentication, your account is vulnerable to spammers and bad actors.  

Additionally, recipient servers may view your mail as untrustworthy. This means you (or worse, someone else) could be sending unauthenticated email messages through your account. If the message is delivered at all, it leads to high filtering rates and spam delivery. 

This also means that your account could be exposed to phishing attacks while spoofing your sending domain. Luckily, with Twilio SendGrid’s new security features, you can send mail from an authenticated source and with proof of ownership of the domain you send from.

Using Single Sender Verification OR Domain Authentication forces users to verify ownership of their sending domain to reduce spoofing across the platform.

How is Twilio SendGrid taking steps to secure SMTP?

In order to continue to utilize email as a trusted communication channel, Twilio SendGrid is committed to deploying the most secure methods of sending for your email program. Here are a few ways Twilio SendGrid has secured its SMTP service.

Secure SMTP

Twilio SendGrid fully supports Secure SMTP (SMTPS), a method of SMTP using transport layer security (TLS) as the connection layer. Twilio SendGrid accepts TLS connections on port numbers 25, 587, and 2525. You can also connect via secure sockets layer (SSL) on port 465.

For more on the differences between these ports, please check out our previous discussion.

Two-Factor Authentication

As of Q4 of 2020, Twilio SendGrid has enforced Two-Factor Authentication for all accounts. This means that any SMTP requests utilizing Basic Authentication (Twilio SendGrid username and password) will be rejected.

Due to this change, all SMTP requests must use an API key to authenticate. This is far more secure than a username and password for your requests not only because of the length of the alphanumeric string but also because you can restrict API permissions and remove scopes at any time. 

IP Access Management

Twilio SendGrid’s IP Access Management feature allows you to control access to your Twilio SendGrid account within your network. This feature ensures only you and your team from known specified IP addresses can access the account. For more information on this feature, please see our documentation.

To learn more about Twilio SendGrid’s latest security updates or email best practices, subscribe to our monthly email newsletter, The Scoop.

Securing your SMTP server

Leveraging a secure SMTP server ensures your email infrastructure is protected against spam and spoofing attacks. Security, flexibility, and seamless integration are all factors to consider for your next SMTP provider. If you’re ready to choose your SMTP service provider, check out Twilio SendGrid’s SMTP service offerings or sign up for free to test it out. 

For more information on SMTP servers, check out the following resources:



Matt Buchanan
Matt is an Onboarding Engineer with experience working in the information technology and professional services industries. He helps customers build, design, and manage software solutions. Matt offers 4 years of knowledge and experience in the email industry.