Connecting Mailgun Step-by-Step Process

Email Services, Settings No Comments

Introduction

Welcome to our easy-to-follow guide on linking your CRM system with Mailgun! If you’re looking to streamline your email campaigns and enhance your email management, you’re in the right place. This guide will take you through each step, from setting up a new domain in Mailgun to ensuring your DNS settings are spot on, and finally, integrating Mailgun with your CRM for efficient email handling. Whether you’re a beginner or just need a quick refresher, we’ve got you covered.

Setting Up a New Domain in Mailgun

  1. Access Mailgun and Navigate to Domains: Log into Mailgun, go to the “Sending” tab, and click on “Domains”.
  2. Add a New Domain: You can use your main domain or a subdomain. For client-specific email addresses, it’s advisable to use a subdomain to keep each client’s email activities separate and secure.Example: For a subdomain, you might use something like testemail.yourdomain.net.
  3. Example: For a subdomain, you might use something like testemail.yourdomain.net.
  4. Enter Your Domain/Subdomain: Choose and type in your preferred domain or subdomain, then click “Add Domain”.

Configuring DNS Records

  1. Log Into Your Domain Provider: Access your domain provider’s website and navigate to your domain’s DNS settings.
  2. Add DNS Records: You will need to add various types of DNS records including TXT, MX, and CNAME records. This involves copying details from Mailgun and pasting them into your domain provider’s DNS settings.TXT Records: These are used for verification and email security purposes.MX Records: These direct your emails to the correct mail server.CNAME Record: This is used for tracking email opens and clicks.
  3. TXT Records: These are used for verification and email security purposes.
  4. MX Records: These direct your emails to the correct mail server.
  5. CNAME Record: This is used for tracking email opens and clicks.

Verifying DNS Settings in Mailgun

  1. Verify DNS Settings: After adding the DNS records, return to Mailgun and click “Verify DNS Settings”. If it doesn’t verify on the first attempt, try again.
  2. Domain Settings in Mailgun: Navigate to “Domain Settings” and ensure that tracking options like unsubscribes, clicks, and opens are enabled for better email management.

Integrating Mailgun with the CRM

  1. Obtain SMTP Credentials from Mailgun: Under “Domain Settings” in Mailgun, find the SMTP credentials section and copy the login email address.
  2. Configure SMTP in the CRM: In the CRM, go to “Settings”, find “Email Services”, and click “Add Service”.

Image

  • Provider Name: Type in “Mailgun”.
  • SMTP Server: This is typically smtp.mailgun.org.
  • SMTP Port Number: Use 587.
  • Username and Password: Paste the copied login email address as the username. Reset and copy the password from Mailgun, then paste it here.
  • From Email Address: Use the full email address you wish to send from, ensuring it matches the domain you set up in Mailgun.

Image

Troubleshooting and FAQs

  • DNS Verification Issues: If DNS settings fail to verify in Mailgun, double-check for any spaces or typos in the records you’ve added. It may also take some time for DNS changes to propagate.
  • Emails Going to Spam: Ensure that your domain has a solid reputation and that you’re using the correct SMTP settings. Utilizing the tracking features in Mailgun can also help manage your email reputation.