Skip to main content

Set Up a Custom Email Address Using Your Subdomain

Guide about Set Up a Custom Email Address Using Your Subdomain

Written by Mayank Baswal

Founder of is-cool-me · DNS & Platform Infrastructure

Mayank Baswal maintains the is-cool-me platform and writes technical guides focused on DNS configuration, subdomain infrastructure, SSL troubleshooting, deployment workflows, and platform reliability.

Reviewed by is-cool-me Technical Review
## Introduction Setting up a custom email address using your subdomain is a crucial step in establishing a professional online presence for your project or business. On the is-cool-me platform, developers can create projects on subdomains like "myproject.is-pro.dev", which offers a flexible and scalable way to host applications. However, using a generic email address like "myproject@gmail.com" can undermine the credibility and consistency of your project's branding. A custom email address such as "contact@myproject.is-pro.dev" not only looks more professional but also reinforces your project's identity. This guide will walk you through the process of setting up a custom email address using your subdomain on the is-cool-me platform, covering the technical aspects, configuration options, and best practices to ensure a seamless and secure email service. ## Prerequisites Before setting up a custom email address, you need to have a few prerequisites in place. First, ensure you have an active project on the is-cool-me platform with a subdomain like "myproject.is-pro.dev". You should also have access to the DNS settings of your domain, as you will need to configure DNS records for email services. Familiarity with DNS concepts such as MX records, TXT records, and SPF records is beneficial but not necessary, as this guide will explain these concepts in detail. Additionally, you should have chosen an email service provider that supports custom domains, such as Mailgun, Sendgrid, or Google Workspace. Having these prerequisites met will streamline the process of setting up your custom email address. ## Step-by-step instructions To set up a custom email address, follow these detailed steps: 1. **Choose an Email Service Provider (ESP):** Select an ESP that fits your needs. For example, if you prefer a simple setup, Google Workspace might be a good choice. For more advanced features and scalability, consider Mailgun or Sendgrid. 2. **Verify Your Domain:** Most ESPs require you to verify your domain ownership. This typically involves adding a TXT record to your DNS settings. For instance, to verify "myproject.is-pro.dev" with Google Workspace, you would add a TXT record with the name "@", type "TXT", and value provided by Google. 3. **Set Up MX Records:** Configure MX records to point to your ESP's mail servers. For example, Google Workspace requires you to set up MX records with the following priorities and mail server addresses: - Priority 10: `mx.google.com` - Priority 20: `alt1.aspmx.l.google.com` - Priority 30: `alt2.aspmx.l.google.com` - Priority 40: `alt3.aspmx.l.google.com` - Priority 50: `alt4.aspmx.l.google.com` 4. **Configure SPF and DKIM Records:** To prevent spam and ensure deliverability, set up SPF (Sender Policy Framework) and DKIM (DomainKeys Identified Mail) records. An SPF record for Google Workspace might look like `"v=spf1 include:_spf.google.com ~all"`. 5. **Create Your Custom Email Address:** Once your domain is verified and DNS settings are propagated, you can create your custom email address through your ESP's dashboard. ## Configuration deep-dive Let's dive deeper into the configuration options with real values. For example, if you're using Mailgun with "myproject.is-pro.dev", your DNS settings might include: - **MX Records:** | Priority | Mail Server | |-----------|--------------| | 10 | mxa.mailgun.org | | 20 | mxb.mailgun.org | - **TXT Records:** | Name | Type | Value | |------|------|-------| | @ | TXT | v=spf1 include:mailgun.org ~all | | mailgun | TXT | keymailgun=your-mailgun-key | - **DKIM Records:** | Name | Type | Value | |------|------|-------| | mail._domainkey | TXT | k=rsa; p=your-dkim-public-key | ## Common pitfalls and solutions Several common pitfalls can occur during the setup process: 1. **Incorrect DNS Settings:** Double-check your DNS records for typos or incorrect values. Use online tools to verify your DNS settings. 2. **Propagation Delay:** DNS changes can take up to 48 hours to propagate globally. Be patient and use tools like `dig` or `nslookup` to check the status. 3. **ESP Verification Issues:** If you encounter issues verifying your domain, ensure you've correctly added the required TXT record and that it has propagated. 4. **MX Record Priority:** Ensure MX records are set with the correct priority to avoid mail delivery issues. 5. **SPF and DKIM Configuration:** Incorrect SPF and DKIM settings can lead to email deliverability issues. Test your configuration using tools provided by your ESP. ## Best practices For optimal performance, security, and maintainability: - **Monitor DNS Propagation:** Regularly check the propagation status of your DNS changes. - **Test Email Deliverability:** Use tools like Mail-Tester or Email-Tester to ensure your emails are delivered correctly. - **Keep Software Up-to-Date:** Ensure your ESP and any related software are updated to prevent security vulnerabilities. - **Use Secure Connections:** Always use TLS (Transport Layer Security) for email communications. ## Troubleshooting section To troubleshoot issues, follow these diagnostic steps: 1. **Check DNS Settings:** Verify all DNS records are correctly set and propagated. 2. **Test Email Sending and Receiving:** Use tools or manually test sending and receiving emails from your custom address. 3. **Inspect Email Headers:** Analyze email headers for clues about delivery issues or spam filtering. 4. **Consult ESP Logs:** Check your ESP's logs for errors or issues related to your custom email address. 5. **Use Online Tools:** Utilize online tools to test SPF, DKIM, and DMARC configurations. ## Deployment scenario from operations Consider a real-world scenario where "myproject.is-pro.dev" is set up with Google Workspace for custom email addresses. The DNS settings would include: - MX records pointing to Google's mail servers. - A TXT record for SPF with the value `"v=spf1 include:_spf.google.com ~all"`. - DKIM records set up according to Google's instructions. The custom email address "contact@myproject.is-pro.dev" is then created through the Google Workspace dashboard. This setup ensures professional email communication for the project, enhancing its credibility and branding consistency. ## Common mistakes Avoid the following common mistakes: * Incorrectly configuring MX records, leading to mail delivery issues. * Forgetting to set up SPF and DKIM records, affecting email deliverability. * Not verifying domain ownership with the ESP, preventing custom email address creation. * Using outdated or insecure email protocols. * Neglecting to monitor DNS propagation and email deliverability. ## How to verify it works To verify your custom email address is working: 1. **Send a Test Email:** Send an email from your custom address to a different email account. 2. **Check Email Receipt:** Verify the email is received without any issues. 3. **Inspect Email Headers:** Check the email headers to ensure they contain the correct SPF and DKIM information. 4. **Test Reply:** Reply to the test email to ensure sending and receiving work in both directions. 5. **Use Online Tools:** Utilize online tools to test your email address for spam score, deliverability, and security. ## Conclusion with next steps Setting up a custom email address using your subdomain on the is-cool-me platform involves verifying your domain, configuring DNS settings, and creating the email address through your chosen ESP. By following the steps and best practices outlined in this guide, you can establish a professional email presence for your project. Next, consider integrating your custom email address with other project tools and services to enhance your workflow and branding consistency. ## FAQ 1. **Q: Why do I need to verify my domain with my ESP?** A: Domain verification is crucial for security and to prevent spam. It ensures that you own the domain you're trying to set up email services for, preventing unauthorized use. 2. **Q: What is the difference between SPF and DKIM?** A: SPF (Sender Policy Framework) and DKIM (DomainKeys Identified Mail) are both email authentication methods but serve different purposes. SPF specifies which IP addresses are allowed to send emails on behalf of your domain, while DKIM adds a digital signature to emails to verify their authenticity. 3. **Q: Can I use multiple ESPs with one domain?** A: Yes, you can use multiple ESPs with one domain, but this requires careful configuration of MX records and potentially SPF and DKIM settings to avoid conflicts and ensure seamless email delivery. 4. **Q: How long does DNS propagation take?** A: DNS propagation can take anywhere from a few minutes to 48 hours. The time it takes depends on the TTL (Time To Live) of your DNS records and the frequency at which DNS servers update their caches. 5. **Q: What is the purpose of DMARC?** A: DMARC (Domain-based Message Authentication, Reporting, and Conformance) is a protocol that helps prevent email spoofing. It allows domain owners to specify which email authentication methods (SPF and/or DKIM) should be used to validate emails sent from their domain and what actions should be taken if an email fails authentication.
Share this article Share on X Share on LinkedIn

Explore More