Using your own mail domain in openDesk: MX, SPF and DMARC

Users can send and receive mail from your organization's domain when MAIL_DOMAIN and the matching DNS records are set correctly. This page covers the setup options, the MX, SPF and DMARC records to publish, and the Postfix HELO names that must line up with them.

On this page

What a custom mail domain changes for openDesk users

MAIL_DOMAIN sets the domain users see when they send and receive, while the DNS records you publish for that domain decide whether other servers accept the mail. An organization that wants staff on its own domain while openDesk runs on a deployment domain needs both halves to agree, or mail will be sent from one name and checked against another. openDesk is a Kubernetes-based suite from ZenDiS, and its groupware runs on OX App Suite with Postfix in the mail path, so the configuration change and the DNS change have to be made together. Check the setting names and their behavior against the release you deploy. v1.19.1 was the latest release at research time, and an older deployment may name or handle these values differently.

Teams need this when the address format is part of how the organization is known to the public or to its partners, and when mail should leave openDesk under the organization's own name. From that point, a sending address that does not match the records published for it can be rejected or flagged by the receiving server, so the domain change and the DNS change must be treated as one release. The work is a configuration change plus DNS changes in a zone you control. Plan a test of outbound and inbound mail with external providers before users rely on the new address, and keep the previous records in place until that test passes.

Before you edit the zone, decide four things with the team that runs DNS and the mail gateway. First, which hosts receive mail for the domain, since the MX record must point at the path that actually reaches openDesk. Second, which senders are allowed to send for the domain in the SPF record, including any relay or marketing service the organization already uses. Third, the name Postfix announces in its HELO greeting, which should resolve to a host that other servers can check. Fourth, how strict the DMARC policy will be on day one, with reports reviewed before any enforcement. Confirm each of these against your release's chart values, because the keys that carry them may change between versions.

Which custom mail domain setup fits your organization

This table compares four ways to set up mail domains in openDesk, with the outbound relay as a separate choice that can combine with any of the others. Read each row for what the setup suits, the DNS records it needs, and what it changes for existing addresses and inbound mail. The main takeaway: decide the domain before accounts are created, and confirm each point against the release documentation for your version.

Setup and what it suitsEffect on existing addresses and inbound mailDNS workWhat to confirm in release docs
Keep the deployment domain: suits evaluations and pilotsUsers keep the deployment domain in their addresses. Changing to a custom domain later means readdressing existing mailboxes.Usually the least new DNS work, since the deployment domain's records already exist.Whether the release supports moving to a custom domain later without recreating accounts.
Primary domain through MAIL_DOMAIN: suits one mail identity for all staffExisting addresses on the deployment domain need an alias or migration plan. Inbound mail for the primary domain must reach openDesk.MX, SPF and DMARC records for the primary domain, plus Postfix HELO names that match them.The MAIL_DOMAIN value, how it treats existing addresses, and the MX target the release expects.
Dedicated mail subdomain: suits organizations keeping other services on the primary domainAddresses take the subdomain, which changes how users see their identity. Inbound mail for the primary domain stays with its current systems.MX, SPF and DMARC records scoped to the subdomain, plus Postfix HELO names for that subdomain.Whether MAIL_DOMAIN accepts a subdomain, and how mailPrimaryAddress values match your identity provider.
Outbound through an existing SMTP relay: suits organizations with a managed sending pathChanges only the outbound path. Inbound MX routing stays as designed for the chosen domain.SPF must authorize the relay's sending hosts, and HELO names must match what the relay presents.Which relay settings the release expects, how the relay authenticates senders, and whether it works with either domain setup.

Publishing MX, SPF and DMARC for openDesk mail

Three DNS records decide whether mail from your domain reaches its recipients and whether receiving servers trust it. An MX record names the servers that accept incoming mail for the domain. An SPF record lists the senders that are allowed to send mail for the domain, and receivers check the sending server against that list. A DMARC record tells receivers what to do when a message fails their checks and where to send aggregate reports about those results. The three records depend on each other, so draft them together from a single inventory of every path mail takes in and out of your deployment, and keep that inventory with the change record.

Start with the MX target. It must resolve to the inbound path your openDesk deployment exposes, and that host must accept connections from the internet on the standard mail port through whatever edge, firewall or load balancer sits in front of it. Confirm that path with your network team before any record changes. For SPF, include every component that sends mail as your domain: the openDesk outbound path, the SMTP relay your production deployment uses, and any third-party sender such as a ticketing tool, a marketing platform or a scanner. A sender left out of SPF will fail checks even when its mail is legitimate, and SPF limits how many DNS lookups a check may perform, so keep the list short and review it whenever a sender changes.

Publish DMARC with a monitoring policy first, using the p=none tag, and a reporting address that someone actually reads. Collect aggregate reports over a period your mail team agrees on, match every sending source to a legitimate owner, and close the gaps before you move to a quarantine or reject policy, because enforcing against an incomplete sender list blocks legitimate business mail. DKIM needs the same care: decide whether openDesk, the relay or a third-party sender signs outgoing messages, who holds the signing keys and where the public key record is published. Confirm the exact record values, selectors and DKIM ownership with your DNS and mail teams and get written sign-off before publishing, since a single typo in a TXT record can make a valid sender fail.

Where your domain's DNS records decide whether openDesk mail is accepted

A message from an openDesk user starts at the sender, passes through Postfix, and leaves through the SMTP relay, which presents the Postfix HELO name to the receiving server. The receiving server reads the sending domain's records in your DNS zone and checks SPF, DKIM and DMARC before it accepts the mail. Inbound mail follows the reverse order: the remote sender looks up your MX record, delivers to the ingress, and the ingress routes it to the OX mail components. Confirm with your relay provider which HELO name it expects, and check that the relay's addresses appear in your SPF record.

Outbound and inbound mail paths, with trust boundaries and the Postfix HELO name.

Setting up your custom mail domain in order

Work through these steps in order to move users from the deployment domain to your organization's domain without breaking mail flow. Each step closes with a check you can record, so a fault appears in a test environment before production mailboxes depend on it. The sequence ends with a DMARC policy that you tighten only after the authentication results in the headers confirm that every legitimate sender passes.

  1. Confirm domain ownership and list senders

    Confirm that your organization controls the mail domain, including DNS write access to publish TXT and MX records, and that this is the domain users will see in their addresses. Then list every system that already sends mail for that domain, such as the openDesk deployment, marketing platforms, ticketing tools, scanners, line-of-business applications and hosted services. Assign one owner to the list and record a stated sending route for each entry. The check is complete when every sender appears on the list with a named owner, because any sender left off will fail SPF or DMARC once records are published.

  2. Decide the outbound mail route

    Choose whether openDesk sends mail directly to recipient servers or hands it to an SMTP relay that your organization operates or subscribes to. The openDesk requirements list an SMTP relay among the production services the operator provides, so most production setups start from that expectation. Record the sending IP addresses or the relay hostname, because the SPF record you publish later must authorize exactly those sources. The check is a short decision note signed off by the team that owns the sending IP reputation and any relay account.

  3. Set MAIL_DOMAIN and test in Helmfile

    In the environment configuration for your test environment, set MAIL_DOMAIN to your organization's domain and commit the change to version control so it can be reviewed and repeated. Confirm how existing addresses are handled before you change the value, starting from the openDesk deployment README. Roll the change out with Helmfile in the test environment first, and leave production untouched until that run is clean. The check is that a test account's primary address shows the new domain and that the Helmfile diff contains only the intended change.

  4. Align Postfix HELO names with DNS

    Set the Postfix HELO or EHLO name for each sending component so that it matches the hostname your MX, SPF and reverse DNS records use. Receiving servers compare the name a sender announces with DNS, and a mismatch can make legitimate mail look suspicious or get it rejected. Use one fully qualified name per sending path and keep it identical in the Postfix configuration, the relay settings and the PTR record for the sending IP. The check is that the configured name on each sender matches the expected value and that a reverse lookup of the sending IP returns the same hostname.

  5. Publish MX, SPF and DMARC records

    Publish the MX record that points inbound mail to the mail entry point openDesk exposes, an SPF TXT record that lists only the sources you recorded earlier, and a DMARC TXT record at _dmarc with a monitoring policy such as p=none and a reporting address. Keep the TTL low until the values are confirmed, so corrections take effect quickly. Hold DMARC at the monitoring policy while aggregate reports arrive. The check is that each record resolves from an external resolver and that the SPF record contains no sender missing from your inventory.

  6. Send test mail and read headers

    Send test messages from openDesk to accounts at several external providers, including at least one that enforces DMARC strictly, and to an account you control that displays full message headers. Open the received headers and read the SPF, DKIM and DMARC results in the Authentication-Results field. Check that SPF and DKIM pass, that DMARC aligns with the From domain, and that the sending IP matches the one you recorded. If DKIM signing is not yet in place, confirm that with the team operating the mail stack before reading results. The check is a written table of provider, result and any failure, with an owner and a fix for each failure before you continue.

  7. Tighten DMARC only after clean results

    Once test mail from every confirmed sender passes SPF and DKIM with alignment, and aggregate reports show no unexpected sources, raise the DMARC policy one level at a time, starting with quarantine before reject. Review the reports between each change and fix any legitimate sender that still fails. If a legitimate sender fails after a change, return to the monitoring policy until it is fixed. The check is a dated record of each DMARC change together with the report review that justified it.

Postfix HELO names and outbound routes compared

With direct delivery, the openDesk Postfix instances connect to recipient mail servers themselves, so receivers see the cluster's outbound address as the sender. Postfix announces the name set in myhostname, and receiving servers compare that name with the reverse DNS record of the sending address. In many clusters the sending address is an egress gateway or NAT address that the nodes share, so that is the address your SPF record and PTR record must describe.

  • HELO name: Set myhostname to a fully qualified name in a domain you control, and make sure that name resolves forward to the sending address.
  • Reverse DNS: The PTR record for the sending address must return the same name Postfix announces. The provider that owns the address block usually controls this record, so request it early.
  • SPF: Publish the sending address, or the provider include that covers it, in the SPF TXT record for the envelope sender domain, and stay within the SPF lookup limit.
  • Egress path: Confirm the network team allows outbound SMTP from the Postfix egress path and that no proxy or inspection device rewrites the connection.
  • IP history: Check the sending address against common blocklists before go-live and ask whether it has sent mail before.

Before cutover, send a test message from openDesk to a mailbox you control and confirm the headers show the expected HELO name, reverse DNS match and SPF pass.

Security risks when the mail domain changes

Changing the mail domain changes what receiving servers check. The records and relay settings below decide whether your users' mail is trusted, delivered and traceable. Each risk is easier to prevent before traffic moves than to fix after recipients start rejecting mail, so check every item in your own environment before the change and again after the first test messages.

Spoofing when SPF or DMARC is weak

A domain with no SPF record or no DMARC policy gives receiving servers little basis to judge mail that claims to come from your organization. A permissive SPF record ending in +all or a DMARC policy left at none has a similar effect. Attackers can then send convincing phishing from your domain, and recipients may never see a failure. Before the change, list every host that sends mail for the new domain and publish DMARC at a monitoring policy with a reporting address. After the change, send test messages to external accounts and read the authentication results in the received headers. Tighten the DMARC policy only after the reports show legitimate mail passing.

SPF entry blocking legitimate senders

An SPF record that omits a sending path makes legitimate mail fail checks, and receivers that enforce DMARC may then reject it. Common gaps include a relay used for application notifications, a hosted service that sends on behalf of the domain, and outbound addresses that changed during the move. A record that exceeds the DNS lookup limits can fail for every sender. Before the change, inventory each sending source and its addresses. After the change, check the SPF result for mail from each source, including scanners, printers and notifications, and correct the record before you tighten DMARC.

Open relay exposure from Postfix

A Postfix instance that trusts too broad a set of client networks can relay mail for anyone who reaches it. Attackers abuse such hosts to send spam, which damages the reputation of your domain and can get your servers blocklisted. The setting to review is the list of trusted client networks in the Postfix configuration. Before the change, confirm that only the networks of the openDesk components and the SMTP relay you use are trusted, and that unauthenticated relaying is refused from everywhere else. After the change, test from outside your network that the server refuses to relay to external recipients.

HELO and reverse DNS mismatches

Receiving servers compare the name a sending server gives in its HELO or EHLO greeting with the forward and reverse DNS for its IP address. When these disagree, many servers reject or downgrade the message, and the failure can appear for some recipients only. The HELO name must match a name that resolves back to the sending address, and the PTR record for that address should point to the same name. Before the change, check the forward and reverse records for each outbound IP and the Postfix myhostname value. After the change, watch the bounce logs closely during the first days of traffic.

Credential and key handling for relays

If outbound mail goes through an authenticated relay account, that credential can send mail as your domain, so its exposure carries the same risk as a spoofing gap. Store the password or API key in the secret store used for the deployment, and limit the account to sending from the addresses it needs. Plan rotation and record who holds the credential. Before the change, confirm which signing keys the relay provides and publish the matching DNS records. After the change, verify that the previous credential is revoked and that no configuration file still contains it.

Retaining mail authentication results

Authentication results are the evidence you need when a sender reports missing mail or when an auditor asks how you protect your domain. Receiving servers record SPF, DKIM and DMARC outcomes in message headers, and DMARC aggregate reports arrive at the address you publish. Decide before the change how long you keep these headers and reports, where they are stored and who may read them, because mail logs can contain personal data. Before the change, agree these settings with your data protection lead. After the change, confirm that the reports arrive and that the headers reach your log store.

Questions buyers ask about a custom mail domain in openDesk

What drives the cost of moving openDesk mail to our own domain?

Cost follows the written scope, and DeployOpen issues a quote once that scope is agreed in writing. The main drivers are DNS change control: how many zones you own, who approves record changes and how many change requests the rollout needs. Relay arrangements matter too, since the SMTP relay that sends outbound mail, its sending addresses and its owner determine how much configuration and verification is needed. Test cycles add effort, because MX, SPF and DMARC results must be checked from outside your network before and after each change. Release alignment is the last driver: if the mail change must fit an openDesk release window, planning and retesting take longer. Ask for a quote that lists each driver as a separate line, with what you provide and what is retested after each change.

How long does it take to switch openDesk mail to our domain?

The timeline depends on your change windows and testing, so no fixed duration applies until the scope is agreed. Your DNS change process sets much of the pace: how often record changes are approved, whether a freeze period applies and how long each review takes. Testing sets the rest, because inbound and outbound delivery, sender checks and mailbox access should be verified before the MX record moves. If the work has to fit a release window or a planned openDesk upgrade, the plan may wait for that window. Ask for a schedule that names each change window, each test cycle and the person who signs off. Confirm with your DNS and mail administrators which windows are open, and confirm with the relay owner when sending settings can change.

What does our team need to provide for a mail domain switch?

Your team provides DNS access, a mail administrator, the relay owner and test mailboxes. Confirm each one before the work starts.

  • DNS access: someone who can create and change the MX, SPF and DMARC records for the mail domain and approve changes made during the work.
  • A mail administrator: someone who knows the current mail flows, mailbox names, aliases and any third-party systems that send mail as your domain.
  • The relay owner: the person who controls the SMTP relay used for outbound mail and can change its allowed senders.
  • Test mailboxes: several accounts on the new domain, plus external accounts for sending and receiving tests.

Name one contact for each role in the scope document, so approvals do not wait for the next meeting. Missing access is one of the most common reasons a cutover slips.

Can our own team publish MX, SPF and DMARC records with the documentation?

A capable team can do this with the documentation, but it should plan for the parts that depend on its own environment. The openDesk deployment documentation covers setting the mail domain, the records to publish and the Postfix HELO names. It cannot know your DNS provider's workflow, your existing senders, your relay's rules or your change policy. Those are where errors tend to appear: an SPF record that omits a legitimate sender, or a DMARC policy tightened before reports show that legitimate mail passes. Your team should check each record against live mail flows and keep a rollback plan for every change. If you want an outside team to carry out the work, ask for a written scope that lists what it covers and what stays with your staff.

What happens to inbound mail while MX records change during cutover?

Inbound delivery follows DNS: after the MX record changes, new mail goes to the new mail hosts, but senders with cached records may still deliver to the old ones for a period. Plan for both systems to accept mail during cutover, or keep the old route in place until the new one is verified. Check the TTL on the current MX record and lower it ahead of the change, if your DNS provider allows it. Send test messages from external accounts to each test mailbox, and confirm that any inbound SPF validation accepts the legitimate sending hosts. Confirm where the old server queues or forwards messages during the switch. Verify the results with the mail administrator before closing the change window.

Does production openDesk mail require Enterprise Edition?

The mail domain change itself does not require Enterprise Edition, but ZenDiS recommends openDesk Enterprise Edition for production. It uses the same open-source core licenses, adds closed-source modules, and includes SLA-backed 2nd and 3rd level support and patches. It is sold as SaaS or for on-premises installation. The Community Edition is supported only by the community on openCode, with no SLA. Decide which edition fits by weighing your support obligations and patch timing against your licensing rules. Before planning the mail design, confirm with ZenDiS and your procurement team which Enterprise components your mail setup would use, because some storage and admin choices affect later edition changes.

Limits to confirm before you change the domain

These checks sit between a working test domain and a live cutover. Several depend on the openDesk release you run, the edition you license and the infrastructure around the mail path, so confirm each one with the named owner before you publish MX, SPF or DMARC changes.

MAIL_DOMAIN and upgrade behavior

Confirm exactly what MAIL_DOMAIN changes in the openDesk release you run, including which addresses it rewrites, whether existing mailboxes keep their current addresses and how stored mail is handled. Read the release notes for your version first, because openDesk does not guarantee in-place upgrades between major releases and supports only the latest minor version. Ask your deployment team or ZenDiS to confirm any upgrade step that touches the domain setting before you schedule the change.

Release management docs

Community versus Enterprise support

The Community Edition is supported only by the community on openCode, with no SLA attached. ZenDiS recommends the Enterprise Edition for production and offers SLA-backed second and third level support and patches. Confirm which edition you run, who answers a mail-path incident and which Enterprise-only storage and search features your mail stack depends on. Get the support terms in writing before you change the domain, because they decide who can fix a delivery problem caused by the change.

Enterprise Edition docs

SMTP relay and inbound checks

Production openDesk expects an external SMTP relay, and that relay shapes what receiving servers see. Confirm whether it adds or rewrites Received headers, changes the envelope sender or sends from addresses your SPF record must list. Inbound checks can pass on one path and fail on another, so ask the relay operator and your mail security team to send test messages to the external providers your users write to, then read the authentication results recorded in the received headers.

Identity attributes and existing addresses

When users come from an external identity provider, openDesk can match accounts by username or another attribute such as mailPrimaryAddress. If that attribute holds the old address, a changed domain can create a second account or leave a mailbox unmatched. Confirm with your directory team which attribute carries each user's primary address, whether aliases are kept and how existing mailboxes map to the new address before any user is switched over.

IdP federation docs

Load balancers and proxies hiding client IPs

SPF checks compare the connecting IP address with the sending domain's record. If a load balancer or proxy in front of the inbound path replaces the client address with its own, legitimate mail can fail SPF and be rejected. Confirm with your network team whether the inbound SMTP path preserves the original sender address, which hops sit in front of the mail server and which addresses belong in your SPF record. Test with a message from a known sender before you enable enforcement.

DNS provider propagation

MX, SPF and DMARC changes take effect only as resolvers pick up new records, and each DNS provider publishes edits and caches answers differently. Confirm with your DNS provider how quickly changes publish, whether the zone is hosted in more than one place and whether your old MX records stay in place during the overlap. Keep DMARC at a monitoring policy until reports show legitimate mail passing, and record the time of each change so delivery gaps can be explained later.

How DeployOpen scopes and delivers mail domain changes

DeployOpen treats a mail domain change as fixed-scope work inside your own infrastructure, covering the MAIL_DOMAIN setting, the MX, SPF and DMARC records, and the Postfix HELO names that identify your servers. The scope is agreed in writing before work starts, each change is verified before users depend on it, and the result is documented for your team.

How we scope

  • The written scope lists each mail domain, DNS zone and sending service the change touches.
  • Scope records which applications and relays send mail on your domain today.
  • Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts.

How we build

  • Set MAIL_DOMAIN so users send and receive under your organization's own domain.
  • Draft the MX, SPF and DMARC records and check them against your DNS provider's zone before publishing.
  • Align Postfix HELO names and sending hosts with the SPF list so legitimate mail is not rejected.

How we hand over

  • Test mail flow end to end for inbound and outbound messages before the MX cutover.
  • Record each DNS value, Postfix setting and the reason for it in documentation your team keeps.
  • Hand over the rollback steps and the checks to rerun after any future DNS or deployment change.

How we support

  • Recheck SPF and DMARC results after every DNS change or mail server update.
  • Ongoing support, upgrades and continuous testing are available as retainers for the mail stack.
  • Confirm with your team who owns DNS, the relay and the sending applications before work starts.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.