Connecting a domain and setting DNS records

Connect a domain in Conbool: set TXT verification, SPF, DKIM and MX in DNS and verify the domain, then mail flow starts.

A connected domain is the precondition for protecting and analysing mail flow. A wizard walks through the setup step by step.

Adding a domain

The setup wizard sits inside the tenant under Configuration. It covers four steps: registering the domain, verification, naming the mail server and completion. For the mail server you enter the internal relay host of the organisation to which Conbool hands incoming email on. Alternatively a domain can be added in the settings under Domains.

Domain settings with a verified mail domain and relay host in the Conbool portal Managed mail domains with verification status and connection.

DNS records

For every domain the wizard shows the concrete values ready to copy. These values are entered at the DNS provider of the domain. Four record types matter:

  • TXT verification confirms control over the domain. If the tenant is already connected to Microsoft 365 and the domain is confirmed there, this record is not needed. The check then shows “Confirmed via Microsoft 365”.
  • SPF authorises the Conbool mail server as a permitted sender.
  • DKIM signs outgoing messages cryptographically.
  • MX routes incoming email through Conbool.

The concrete host names and values are shown in the wizard only, because they differ per domain. Fixed values cannot be given in advance.

Nameservers at Microsoft

If the nameservers of the domain point to Microsoft (ns1.bdm.microsoftonline.com to ns4.bdm.microsoftonline.com), the DNS records are in the Microsoft 365 admin center under Settings, Domains, in the domain under DNS records. TXT and CNAME records are added there with Add record. For the MX this does not work at first: as long as Exchange is selected for the domain, Microsoft sets the MX itself and does not allow another one.

  1. Finish the setup in Conbool except for the MX. Under Settings, Domains, choose Resume setup in the domain, enter the relay host in the Mailserver step and finish with Switch later in the Switch MX step. For Exchange Online the relay host is the previous MX value, for example example-com.mail.protection.outlook.com. Without a relay host, Conbool cannot hand the mail on. If the setup is already finished, the relay host is in the domain under Mail server and can be changed there.
  2. Back up the zone. Download the zone file in the admin center under DNS records.
  3. Take Exchange out of the DNS management. Under Manage DNS, clear the checkbox for Exchange and Exchange Online Protection and save. The other services stay selected. This can remove the records in the Microsoft Exchange block, that is MX, SPF and Autodiscover.
  4. Set the records again straight away. With Add record:
    • MX, name @, with the value and priority from the wizard, usually mail.conbool.com and 10
    • TXT, name @, with the SPF value from the wizard, if the SPF record is gone. There must be only one.
    • CNAME, name autodiscover, value autodiscover.outlook.com, if it is gone
    • any other missing records from the zone file, such as the DKIM records of Microsoft
  5. Check. Run the record check in Conbool and send a test message from outside.

Between steps 3 and 4 the domain has no MX, and incoming messages can be rejected during that time. Do both steps directly one after the other and outside working hours. If Microsoft then reports missing Exchange records, do not have them corrected automatically, otherwise the old MX can come back.

The labels in the admin center may differ. Microsoft does not describe this procedure as a guide of its own. We recommend running it with a test domain first. To avoid it, keep the DNS zone at another provider: create all records there first, then change the nameservers at the registrar. The MX can be set freely there.

Verification

Once the records are set, Conbool checks the DNS server side. If a record is missing, the check reports it individually and the domain can be verified again after the correction. The MX record is optional at the start and required for receiving incoming email through Conbool. That way the mail flow can be switched over deliberately after the rest of the setup.

An old TLSA record before switching the MX

Anyone who has run their own mail server with DANE so far often still carries a TLSA record in their zone. It describes the certificate of that old server and no longer fits once the MX points to Conbool. So before setting the MX record, check once:

dig +short TLSA _25._tcp.example.com

If an answer comes back, the record belongs deleted at the DNS provider. Correcting it does not help: a TLSA record belongs at the host name of the mail server from the MX record, not at your own domain. A checking sender reads the MX record first and looks for the TLSA record there afterwards. Only a domain with no MX record at all is itself the right place.

As long as your own zone is not signed with DNSSEC, such a record has no effect and nobody notices it. If DNSSEC is switched on later, it counts from that moment: checking senders such as Microsoft 365 then reject every message permanently with 550 5.7.323 tlsa-invalid, without a retry and without anything having changed at Conbool. Incoming mail stands still until the record is gone.

If DANE is wanted for the inbound path, the matching record is maintained at the host name of the Conbool MX, not in the zone of your own domain.

Next steps

SPF and DKIM are at the same time the foundation of outbound identity. The pages on SPF and DKIM and on the DMARC record go deeper. For inbound protection, MailGuard follows. Continue the onboarding with users and roles.