Mail for domain

How to configure MX and SPF records

If you delegate your domain to Yandex, all necessary records will be configured automatically. Otherwise, you will need access to the interfaces for editing domain DNS records. This access is usually provided through the web interface (on the website of your registrar or hosting provider).

MX record configuration

To configure MX records:

  1. Create a new MX record with the following parameters:

    • Subdomain name: @

    • Record type: MX

    • Data: mx.yandex.net.
    • Priority: 10

  2. Delete all previous MX and TXT records which do not refer to the Yandex servers.

You can see the result of the MX record configuration on the My domains page. The status of the confirmed domain will change from "Waiting for installation of MX records" to "Connected". Propagation of information about changes to MX-records may take between a few hours and 2-3 days.

Attention! If your domain already contains some mailboxes, new emails will start arriving at the Yandex servers after the previous MX values are deleted. Therefore, you need to set up all necessary email addresses before deleting the old records by copying them from the previous hosting. After creating the mailboxes, you can transfer all previous emails to Yandex servers via the special migration interface. This becomes accessible after the domain status has changed to "Connected."

Recommendations

  • In certain cases, the @ character may not be accepted by the DNS control interface as a record name (subdomain name). In this case, provide your domain name with a dot at the end as the record name. The record will look like this:

    • Subdomain name: yourdomain.com.

    • Record type: MX

    • Data: mx.yandex.net.

    • Priority: 10

  • If it is not possible to enter the @ character or the domain name in the "record name" (subdomain name) field, then leave this field empty.

  • If the "record name" (subdomain name) field is not available in the web interface for editing MX records, then only give the record destination (mx.yandex.net.) and priority (10).
  • If priority 10 is not available in the web interface of your registrar, enter any other priority different from 0.

  • mx.yandex.net. (with a dot at the end) must be specified as the MX server.  The dot can only be omitted if your registrar does not accept such a value.

SPF record configuration

SPF records are necessary to decrease the probability that emails sent from your domain end up in the spam folder. The domain SPF record holds the list of server addresses which are authorized to send emails from your domain's mailboxes. SPF record configuration is not mandatory for email to work on your domain. It will, however, help you avoid losing sent e-mails.

To configure SPF records you need to have access to edit the domain's DNS records. This access is usually provided through the web interface (on the website of your registrar or hosting provider).

Add a record with the following parameters:

  • Subdomain name: @

  • Record type: TXT

  • Data: v=spf1 redirect=_spf.yandex.net

Note. If you want to send emails from other servers, these servers must be listed in the SPF record. Instead of :“:v=spf1 redirect = _ spf.yandex.net::”, the following value must be provided: :“:v=spf1 ip4::IP-1: ip4::IP-2: ip4::IP-3: include: _ spf.yandex.net ~all::”, where :IP-1::, IP-2:, :IP-3: are the addresses of the servers from which emails are also sent.

Recommendations

In certain cases, the @ character may not be accepted by the DNS control interface as a record name (subdomain name). In this case, provide your domain name with a dot at the end as the record name. The record will look like this:

  • Subdomain name: yourdomain.com.

  • Record type: TXT

  • Data: v=spf1 redirect=_spf.yandex.net