Skip to content

Which DNS Records to Set Before Using an Automated Receipt System

Automated receipts are only useful if they arrive. Learn which DNS records to check or add before connecting a receipt or invoicing system to your domain.

10 min readUpdated Nov 23, 2026By XPASS Editorial Team

Which DNS Records to Set Before Using an Automated Receipt System

A customer pays, and a few seconds later an automated receipt should arrive in their inbox. That small message does a lot of work: it confirms the purchase, shows the amount, supports your accounting and reduces support questions. When it lands in spam, or fails to arrive at all, the customer assumes the payment did not work and contacts you, or worse, disputes the charge.

Most delivery problems with automated receipts are not caused by the receipt system itself. They come from missing or conflicting DNS records on the sending domain. This article lists the records to check or add before you connect a shop platform, invoicing app or billing tool, explains what each does and gives you a safe order of work.

Why DNS matters for receipts

When your receipt tool sends a message that says it comes from your domain, the receiving server wants evidence that you allowed it. That evidence lives in DNS. The receiving server looks up records for your domain and decides whether to trust the message, send it to spam or reject it. Gmail, Outlook and other large providers apply these checks to every sender, large or small.

Receipts have two features that make DNS especially important:

  • They are sent by a third party on your behalf. The sending servers belong to the tool, not to you, so you must tell the world that those servers may use your name.
  • They are time-sensitive and expected. A customer waiting for a receipt will notice a delay quickly, so even small deliverability problems become visible.

It helps to read the basics of how DNS works in the Domain Names specification, RFC 1035, but you do not need to memorise it. What you need is a clear list of records and a way to verify them.

The records to review

Record Purpose Where it is published
SPF (TXT) Lists servers allowed to send for the domain On the domain or sending subdomain
DKIM (TXT or CNAME) Publishes the key used to verify signatures On a selector name under the domain
DMARC (TXT) Sets policy and reporting On the dmarc name under the domain
MX Says where mail for the domain is received On the domain or subdomain that receives replies
CNAME or TXT for verification Proves ownership to the tool As the tool instructs
Return-path CNAME Aligns bounce handling with your domain As the tool instructs

SPF

SPF, defined in RFC 7208, is a TXT record that begins with a version tag and lists the sources allowed to send. Your receipt tool will usually give you an include statement to add. Two rules matter most.

  1. Only one SPF record per name. If you already have one for your mailbox provider, edit it to add the new include instead of creating a second record.
  2. Watch the lookup limit. SPF allows a limited number of DNS lookups during evaluation. Every include and several other mechanisms count. If you stack many tools, you can exceed the limit and cause errors. Remove senders you no longer use.

DKIM

DKIM, defined in RFC 6376, lets the receipt tool sign each message with a private key. Receivers fetch the matching public key from DNS to verify it. The tool will tell you the selector name and either the TXT value or a CNAME that points to a key it manages. Publish it exactly, then use the tool's verify button or send a test message and read the headers for a pass result.

DMARC

DMARC, defined in RFC 7489, ties SPF and DKIM to the visible From domain and gives receivers a policy. If you have not published one, begin with a monitoring policy so that you can see how your receipt tool performs before enforcing anything. If you already enforce a strict policy, adding a new receipt tool without authentication will cause its mail to be rejected, so check alignment first.

MX

MX records tell the world where to deliver mail for your domain. They matter for receipts in two ways. First, customers often reply to a receipt, so replies need a working destination. Second, some tools use a subdomain for return-path handling that needs its own MX record, which the tool will specify. Never remove or alter the MX records for your main mailboxes while setting up the receipt tool unless you intend to move your mail.

Verification records

Many tools ask you to publish a CNAME or TXT record to prove that you control the domain. These are normally harmless to existing mail, but they must be copied exactly. Some DNS panels automatically append your domain name to the end of what you type, which creates a doubled name. If verification fails, this is the first thing to check.

Choosing a sending address and subdomain

You can send receipts from your main domain, for example a no-reply or billing address, or from a dedicated subdomain. Each approach has trade-offs.

  • Main domain: simple, familiar to customers, and a good choice for a very small business. All of your mail shares one reputation, so a problem with one tool can affect the others.
  • Dedicated subdomain: separates transactional mail from staff mailboxes, so a mistake in one does not damage the other. It needs its own SPF, DKIM and, depending on setup, DMARC alignment. It takes a little more care to maintain.

Whichever you choose, use a from address that looks like your brand, avoid a generic webmail address, and provide a monitored reply address. A receipt that says "do not reply" with no other contact route frustrates customers. If your domain is new, read why Gmail rejects email from a new domain before you send a large first batch.

A safe order of work

  1. Inventory the DNS zone. Export or screenshot all current records before you change anything. This is your rollback plan.
  2. Check the current state. Look up your SPF, DKIM and DMARC records. Note what already exists for your mailbox provider.
  3. Add the tool's records one at a time. Add verification, then SPF, then DKIM, then any return-path records. Wait for each to appear before the next.
  4. Verify in the tool. Most receipt tools show a status page. Do not go live until it shows the domain as verified.
  5. Send test receipts to addresses at several providers, including a Gmail address and a business address. Check the message headers for authentication results.
  6. Review DMARC reports. After a few days, confirm that the receipt tool appears and passes.
  7. Document it. Record which tool uses which record so a future colleague does not delete it by mistake.

An example

A small online shop uses its mailbox provider for staff mail and wants its shop software to send order receipts from orders at its own domain. The owner exports the DNS zone, then finds an existing SPF record for the mailbox provider. Instead of adding a second record, the owner appends the shop software's include to the existing one. The software also requests two CNAME records for DKIM and one for the return path, which the owner adds exactly as shown. The tool reports the domain as verified. A test order sends a receipt to a Gmail address, and the headers show SPF, DKIM and DMARC all passing. A week later, the DMARC report lists the shop software as a passing source, and the owner moves forward with a stricter policy.

What a good receipt looks like

DNS gets the message through the door, but the content decides whether the customer trusts it. A few habits help both customers and filters.

  • Use a clear subject line that includes the order or invoice reference, for example the word receipt and a number, rather than vague wording.
  • Show your business name and contact details in the body, so that the customer can recognise the sender and reach you.
  • Use links sparingly. A receipt may link to your own website or to an order page, but avoid link shorteners and long tracking addresses.
  • Keep the design simple. A message that is only one large image looks like a spam pattern. Include real text with the amount, date and items.
  • Make the plain-text version meaningful. Many systems send both an HTML and a plain-text part, and a well-formed plain-text part is a good sign.
  • Do not ask for passwords or card numbers. A genuine receipt never needs them, and training customers to expect this makes phishing easier to spot.

A short pre-launch checklist

  1. The zone has been exported or documented.
  2. There is exactly one SPF record for each sending name.
  3. DKIM is verified in the tool and a test message passes.
  4. A DMARC record exists, and its reporting address is monitored.
  5. The reply address reaches a real person.
  6. Test receipts arrived in the inbox, not spam, at several providers.
  7. Two people know where the DNS records are managed and who can edit them.

Testing and troubleshooting

When a receipt lands in spam or does not arrive, work through these checks.

  • Read the headers. Look for the authentication results lines. A fail or neutral result points to the record that needs attention.
  • Compare the visible From domain with the signing domain. If the tool signs with its own domain only, DMARC alignment may fail.
  • Look for duplicate or conflicting records, especially two SPF records.
  • Check for typos or doubled domain names in CNAME and TXT values.
  • Check propagation. If a record was changed recently, the old value may still be cached. Look at the time-to-live of the previous record to estimate the wait.
  • Check content. Receipts with only an image, a shortened link, or promotional text can look suspicious. Keep them plain and transactional.
  • Check sending history. A domain that never sent mail before and suddenly sends many receipts may be treated cautiously. Increase volume gradually where you can.

For the wider set of controls beyond DNS, such as mailbox login protection and staff habits, see the email security checklist for Thai small businesses, and for forged messages that reuse your brand name, see reducing email spoofing and phishing.

Limits and what to watch for

  • DNS records do not guarantee inbox placement. They remove common reasons for rejection, but each receiving provider also considers reputation, content and recipient behaviour.
  • Tool changes can break records. If you switch receipt tools, remove the old tool's records and add the new ones. Leftover includes waste lookups and widen who may send as you.
  • Do not publish secrets. DKIM public keys are meant to be published, but private keys and API tokens must never go into DNS or into shared documents.
  • Propagation takes time. Avoid changing DNS right before a launch or a promotion period.
  • Keep receipts transactional. Mixing marketing offers into receipts can bring complaints and may trigger additional legal duties. Send marketing separately with consent and an unsubscribe route.
  • Retention and tax rules vary. If receipts are also tax documents, check the requirements that apply to your business and keep copies as required. Ask a qualified adviser rather than relying on this article.
  • Who edits DNS matters. Limit access to the people who truly need it, and use multi-factor authentication on the DNS account.

Summary

Before an automated receipt system goes live, make sure the domain can prove that the system is allowed to send in your name. Review SPF, DKIM, DMARC, MX and the verification or return-path records the tool requests, change them one at a time, and test with real mailboxes. Keep a backup of the zone, use a recognisable sending address and keep receipts plain and transactional. If you would like to see how a provider can support a domain with business mailboxes, the business email page is a sensible place to look next, and the email security page covers protection around your sending domain.

Frequently asked questions

Which DNS records matter most for automated receipts?

SPF, DKIM and DMARC matter most for sending, and MX records matter for receiving replies. If the receipt tool uses its own sending domain or return path, it may also ask for a CNAME or TXT record to verify ownership.

Should receipts be sent from the main domain or a subdomain?

Either can work. A dedicated subdomain such as a billing or mail name keeps transactional reputation separate from staff mailboxes, but it needs its own authentication records. Choose what your tool supports and what you can maintain.

Why does my receipt tool ask me to add a CNAME record?

Many tools use CNAME records so that they can publish and rotate DKIM keys or manage a return-path domain on your behalf. Add them exactly as given and check that they resolve.

How long do DNS changes take to work?

It depends on the time-to-live value of the old record and on the resolver. Some changes are visible within minutes while others take hours. Plan the change before a busy period and test afterwards.

Do I need an unsubscribe link in a receipt?

Receipts are transactional messages about a purchase and are usually treated differently from marketing mail. Keep them clearly about the transaction, and do not mix promotions into them without following the rules that apply to marketing messages.

About the author

Bob Kanokphon Thongdee, founder of XPASS VPN

Bob Kanokphon Thongdee

  • Founder of XPASS VPN
  • Co-founder of eSIMonline.asia
  • More than 7 years in online marketing
  • Founder of Cojourney Visa and Cojourney Travel

Protect your email and stop spoofing

Spam filtering and DMARC monitoring for your domain.

See email security

Keep reading

Business Email Guides

An Email Security Checklist for Small Businesses in Thailand

Small businesses rely on email for orders, invoices and customer trust. This checklist covers the controls that matter most and how to review them on a schedule.

10 min read

Business Email Guides

How to Reduce Email Spoofing and Phishing Against Your Brand

Attackers can forge your From address or register a lookalike domain. This guide explains the realistic controls that make brand phishing harder and easier to spot.

10 min read

Business Email Guides

Why Gmail Rejects Email From a New Domain

A new domain has no sending history, so Gmail treats it with caution. Learn what triggers rejections and how to fix authentication, reputation and list problems.

10 min read