Have you ever wondered how email marketing platforms like Mailchimp, BestRegards, and HubSpot manage to send hundreds or even thousands of emails from your custom domain in just seconds—without flooding your inbox?

This post will explain how these platforms connect to your domain service provider to ensure your emails get delivered, pass spam filters, and maintain your brand’s credibility. Even though the process can get pretty technical, I’ll explain it in a way that’s easy to grasp while still diving into the details.


There are 5 major steps involved:

  1. Verifying your Domain
  2. Setting Up Email Verification
  3. Adding DNS Records
  4. Sending Emails On Your Behalf
  5. Monitoring Email Deliverability and Reputation

Step 1: Verifying Your Domain

To begin sending emails on your behalf, the email marketing platform needs to verify that you own the domain you're using. It is like proving that you have the keys to the house before you let someone inside. This verification process typically involves adding a specific DNS (Domain Name System) record to your domain provider’s settings. DNS records serve as the blueprint for how your domain interacts with other internet services; in this case, they confirm to the email marketing platform that you have control over your domain.

The platform will provide you with specific instructions on what DNS record to add. There are two common types of records used for domain verification:

1. TXT (Text) Record

A TXT record is a human-readable string of text that gets added to your domain’s DNS settings. Think of it as a virtual post-it note stuck to your domain’s profile. This text record proves to the email marketing platform that you control the domain because only the domain owner (you) can edit DNS records.

Here’s how it works in detail:

The exact content will vary depending on the platform you're using.

Name/Host Field: This will typically be your domain name or “@” (which represents the root domain).

TTL (Time to Live): This field controls how long DNS servers should cache the record before checking for updates. Leave it as the default, which is usually set to something like 3600 seconds (1 hour).

The TXT record essentially serves as proof of ownership that the email marketing platform can verify. Once added, it might take up to 48 hours for the DNS changes to propagate globally, but in many cases, the verification happens much faster.

2. CNAME (Canonical Name) Record

A CNAME record is another type of DNS record used for verification. Unlike a TXT record, which is just a string of text, a CNAME record works by mapping one domain name to another, serving as an alias. In this case, the CNAME record tells the world that your domain (e.g., yourdomain.com) is linked to the email marketing platform’s domain for sending emails.

Here’s the detailed process for adding a CNAME record:

Host/Name Field: This is typically a subdomain like email.yourdomain.com. The platform will specify this value.Value/Points To Field: This is where you’ll enter the domain the CNAME is pointing to, which the platform will provide. For example, it might be something like:

email.emailmarketingplatform.com

TTL (Time to Live): Again, leave this as the default (e.g., 3600 seconds).

The CNAME record creates a direct link between your domain and the platform, which allows it to send authenticated emails on your behalf. This method is slightly more involved than the TXT record, as it involves mapping part of your domain (like a subdomain) to the platform’s servers.

What Happens After DNS Records Are Added?

After you’ve added the TXT or CNAME record, the email marketing platform will automatically start monitoring your DNS settings to verify that the correct record has been added. This is how the process unfolds:

This verification step is critical because it not only ensures that emails coming from your domain are legitimate but also helps improve deliverability, reducing the likelihood of your emails being marked as spam.

By adding these DNS records, you're telling the world, "This platform is trusted to send emails from my domain," which is essential in the complex ecosystem of email deliverability. Without these records in place, email servers might reject your emails or mark them as suspicious, negatively impacting your email campaigns.

Step 2: Setting Up Email Authentication

Now that the platform knows you own the domain, it’s time to ensure that the emails sent from your domain are authenticated. This step is crucial because it prevents bad actors from pretending to send emails from your domain (spoofing) and helps your emails land in recipients’ inboxes instead of spam folders.

Three key protocols ensure authentication:

SPF (Sender Policy Framework)

Think of SPF as a “who’s allowed to send emails for me” list. It’s a record you add to your DNS settings that tells the world which email servers are authorized to send emails on your behalf.

How it works: When an email is sent, the recipient’s email server checks the SPF record to see if the email came from a legitimate server. If it matches, the email is considered safe. An example of an SPF record might look like:

v=spf1 include:emailplatform.com ~all

This says that your email marketing platform is authorized to send emails on behalf of your custom domain.

DKIM (DomainKeys Identified Mail)

DKIM is like a digital signature for your emails. It ensures that the email wasn’t altered after it was sent. The platform signs each outgoing email with a private key and the recipient’s email server checks that signature against the public key stored in your DNS.

How it works: When the email arrives, the receiving server checks the signature using the public key you’ve added to your DNS. If everything matches, the email is confirmed as genuine. Here’s an example of what a DKIM record might look like in your DNS:

default._domainkey.yourdomain.com
v=DKIM1; k=rsa; p=MIGfMA0GCSqG...

DMARC (Domain-based Message Authentication, Reporting & Conformance)

DMARC ties everything together and gives you control over what happens when an email fails SPF or DKIM checks. You can instruct receiving servers to reject, quarantine, or accept such emails.

How it works: You create a DMARC policy in your DNS settings, specifying what to do if an email fails authentication. You can also receive reports on emails that don’t pass the checks, giving you insights into potential spoofing attempts. A simple DMARC policy might look like:

v=DMARC1; p=none; rua=mailto:[email protected]

This tells email servers to do nothing if an email fails (just report it), but you can get notifications via the email address provided.

Step 3: Adding DNS Records

Once you’ve set up SPF, DKIM, and DMARC, you will need to add these records to your DNS settings. Here’s how you do it:

Step 4: How Emails Are Sent on Your Behalf

Once your domain is verified and all email authentication protocols are correctly configured, your email marketing platform is now empowered to send emails on your behalf. Let’s break down the process in detail to understand how the magic happens—from the moment you click "Send" to when the email lands in your recipient’s inbox.

1. You Create the Campaign

This part is where your creativity and strategy come into play. Using the email marketing platform’s interface, you’ll:

2. The Email Marketing Platform Takes Over

After you hit “Send”, the email marketing platform’s infrastructure springs into action. Here’s a more detailed look at what happens behind the scenes:

The Journey of the Email Through the Internet

Once the email has been processed, signed, and sent out by the email marketing platform, it embarks on its journey across the internet via the platform’s SMTP servers. The path it takes is as follows:

SPF Check: The server checks the SPF record to see if the email was sent from one of the IP addresses listed in your SPF DNS record. If the sending server is not on the list, the email might be flagged as spoofed or rejected.

DKIM Validation: The server uses the DKIM public key (stored in your DNS settings) to verify that the digital signature in the email header matches the content of the email. If the DKIM signature passes, the server knows the email wasn’t altered in transit.

DMARC Enforcement: The server cross-checks SPF and DKIM results with your DMARC policy. If the email fails either SPF or DKIM, the server looks at your DMARC record to decide what to do with it. If your policy is set to:

  1. None: The email is delivered normally, even if it fails checks (though it might be flagged as spam).
  2. Quarantine: The email is placed in the recipient's spam folder.
  3. Reject: The email is outright rejected and not delivered at all.
  4. Final Spam Filtering: Even after passing SPF, DKIM, and DMARC, the recipient's email provider still applies its own spam filtering algorithms. It looks at things like:

Reputation: How trustworthy is the domain sending the email? Have previous emails from this domain been marked as spam?

Content: Does the email contain spammy words, excessive images, or a suspicious number of links?

Engagement: How often does the recipient engage with emails from this sender? Have they opened or clicked emails from this domain in the past? If the email passes all these tests, it lands safely in the recipient’s inbox. If any check fails, the email might be sent to the spam folder, quarantined, or even rejected outright, depending on the recipient’s email provider and your DMARC settings.

Step 5: Monitoring Email Deliverability and Reputation

Even after setting everything up, it’s important to monitor how your emails are performing. Email marketing platforms often provide tools to track your domain’s reputation and deliverability rates.

Some key metrics to watch:

Conclusion: The Tech Behind Your Email Campaigns

Email marketing platforms make sending bulk emails seem effortless, but behind the scenes, there’s a well-oiled machine of DNS records, authentication protocols, and servers working in harmony. By verifying your domain and setting up SPF, DKIM, and DMARC, you’re not only protecting your brand but also increasing your chances of landing in your audience’s inbox.

Understanding this technical process can help you fine-tune your email marketing efforts, ensuring that every email you send builds trust, enhances deliverability, and strengthens your brand’s reputation.

If you found this insightful, follow me on social media for more tips and behind-the-scenes tech insights!

Twitter, LinkedIn