Search Our Database

How to Set Up DNS Records for Your Webmail in SmarterMail

Last updated on |
by

Introduction

Email authentication and proper DNS routing are essential for protecting your domain from spoofing, phishing, and spam, while ensuring messages are delivered reliably. When you configure A, MX, SPF, DKIM, and DMARC records for your SmarterMail server, you ensure that receiving mail servers can verify emails genuinely originate from your authorized senders and that incoming messages reach the correct destination. Administrators need to implement these technologies within their DNS management panels to improve email deliverability and safeguard the domain’s reputation. By setting up these DNS records properly, you minimize the risks of unauthorized use and ensure seamless, trustworthy communication for your entire organization.

 

Prerequisite

  • Access to your domain’s DNS management panel.
  • Access to SmarterMail with administrator privilege.
Important Note ⚠️: Proper configuration is critical to prevent legitimate messages from being marked as spam and to protect the domain’s reputation.

 

Step-by-step guide

Step 1: Set Up A Records

A records translate hostnames to your server’s IP address, allowing users and services to locate your mail server.

  1. Go to your domain’s DNS manager.
  2. Add a new A record for your mail server:
    • Name/Host: mail
    • Type: A
    • Value: your_server_ip
  3. Add another A record for your webmail access:
    • Name/Host: webmail
    • Type: A
    • Value: your_server_ip

 

Step 2: Set Up MX Record

The MX (Mail Exchanger) record directs incoming emails to your designated mail server.

  1. Add a new MX record with the following values:
    • Name/Host: @ or your domain name
    • Type: MX
    • Priority: 10
    • Value: mail.yourdomain.com
Tips 🖊️: The default value is usually your mail. hostname. However, if your domain uses an antispam filter, kindly refer to your hosting company for the correct hostname.

 

Step 3: Set Up SPF Record

SPF allows domain owners to define which servers are permitted to send emails on their behalf.

  1. Go to your domain’s DNS manager.
  2. Add a new TXT record with the following values:
  • Name/Host: @ or your domain name
  • Type: TXT
  • Value: v=spf1 a mx ip4:your_server_ip include:smartermail.example.com ~all
Tips 🖊️: Use -all for strict rejection or ~all for soft fail.

 

Step 4: Set Up DKIM Record

DKIM ensures the message has not been altered and verifies the sender’s domain.

  1. Enable DKIM in your SmarterMail interface.
    • As a primary administrator:
      • First, navigate to Manage > Domains and click on your target domain.
      • Then, navigate to General tab, and click on Enable under Email Signing.
    • As a domain administrator:
        • First, navigate to More > Domain Settings.
      • Then, navigate to General, and click on Enable under Email Signing.
  2. The system will generate a public DKIM key and a corresponding TXT DNS record.
  3. Copy the DKIM DNS record and click on Save for first enable.
  4. Then, publish it in your DNS panel:
  • Name/Host: xxx._domainkey
  • Type: TXT
  • Value: v=DKIM1; k=rsa; h=sha256; p=YOUR_PUBLIC_KEY

 

Step 5: Set Up DMARC Record

DMARC enforces the authentication results of SPF and DKIM and provides reporting insights.

  1. Add a new TXT record in your DNS panel with the following details:
  • Name/Host: _dmarc
  • Type: TXT
  • Value: v=DMARC1; p=quarantine; rua=mailto:dmarc-reports@yourdomain.com; ruf=mailto:dmarc-failures@yourdomain.com; fo=1
Important Note ⚠️: You can modify the policy (p=) depending on your preference. Use p=none to monitor only (recommended when first implementing without affecting email delivery), p=quarantine to move suspicious emails to the spam folder, or p=reject to block emails that fail authentication entirely.

 

Step 6: Verify Your DNS Records

After setting the records, verify they are correctly propagated.

  1. Use online tools like MXToolbox or Dmarcian to check your domain.
  2. Alternatively, you can use the command line to verify the A, MX, SPF, DKIM, and DMARC records respectively:
    dig mail.yourdomain.com
    dig webmail.yourdomain.com
    dig mx yourdomain.com 
    dig txt yourdomain.com 
    dig txt xxx._domainkey.yourdomain.com 
    dig txt _dmarc.yourdomain.com
  3. Allow up to 24 hours for DNS changes to fully take effect globally.

 

Conclusion

By following this guidance, you can securely configure email authentication for your domain and ensure improved email deliverability. Enforcing these policies helps maintain a trustworthy environment and safeguards your organization against spoofing activities.

Should you have any inquiries about the guidelines, please feel free to open a ticket through your portal account or contact us at support@ipserverone.com. We’ll be happy to assist you further.