Adding and Verifying a Domain in Mailtrap

Introduction

Adding and verifying a sending domain in your Mailtrap account is required to prove ownership of the domain from which outgoing messages will be sent. You must complete this step before configuring the Mailtrap Integration within Gravity SMTP.

This article outlines the steps to add and verify a domain in your Mailtrap account. Refer to the Sending Domain Setup documentation from the official Mailtrap website for more information and related articles.

Adding a New Domain

Go to Sending Domains in the left navigation panel and click Add Domain. Enter the domain from which you want to send emails and click Add. You must be the domain owner with access to its DNS records.

After adding the domain, you will see the Domain Verification page.

Verifying Your New Domain

To verify ownership of your domain, you will need to add DNS records to your domain provider. Mailtrap provides five records to add: four CNAME type records (Domain Verification, DKIM (2), and Custom Tracking Domain) and one TXT type record (DMARC).

On the Domain Verification page, locate the DNS records provided by Mailtrap. For each record, copy the Name and Value and add them to your domain provider. Make sure to match the record type correctly in your domain provider.

Note: Some domain providers require DKIM records in a specific format. If that’s the case, replace rwmt1._domainkey with rwmt1._domainkey.yourdomain.com, and rwmt2._domainkey with rwmt2._domainkey.yourdomain.com.

Once all records are added, return to Mailtrap. Records may be verified immediately or may take time to propagate. Mailtrap checks DNS records automatically every hour, but you can trigger a manual check by clicking Re-check DNS Records. When all records are verified, the status will change from Missing to Verified.

Note: DNS propagation can take anywhere from 15 minutes to a few hours, and in rare cases up to 24 hours.

Once your domain is verified, you are ready to configure your Mailtrap Integration settings within Gravity SMTP.