• Set up mail with your Yandex domain. Yandex mail for a domain: setup and creation

    10.04.2016 03.08.2016 /

    In this article we will talk about how to connect your domain to mail for a domain from Yandex, and why you need to do this at all, and at the end of the article you will decide whether you need it or not.

    Let's start with a small problem

    You have your own domain, for example gerasimovmail.ru. And you want to check mail from it on Yandex, Mail or Google in order to get the already familiar functions:

    • translation from one language to another,
    • convenient mobile application,
    • familiar interface
    • cloud storage or calendar,
    • and excellent anti-spam protection.

    The simplest solution is to configure it inside your hosting panel (within your hosting) when setting up postal address regular redirection. That is, in a special field you write your mail.ru or gmail.com address, and all letters that are sent to your email address with a domain will automatically go to your address in your favorite service.

    Now let's complicate the problem a little

    1. You already want to create corporate email on your domain. Let's say you have a small company and you want all your employees to have mail [email protected]
    2. Or do you want to send newsletters with mailbox with your domain (like mine), and for this you need to register DKIM and SRV records so that the services mail.ru, yandex.ru, gmail.com do not recognize your letters as spam. There is a solution to automatically register these entries.
    3. Or do you want users of your site (for example, you have a very visited portal) to automatically create mail like [email protected] on your website, or simply put a window somewhere on your website “Create mail with such and such a domain”.

    What should be done in this case?

    If you this decision If you are interested, then we will talk further about how to connect a domain to such a service using the example of Mail for a domain from Yandex.

    How to connect a domain to mail for a domain from Yandex?

    In order to connect a domain to mail for a domain from Yandex, there are two ways.

    First way— consists of two stages:

    • domain ownership confirmation
    • configure MX records

    This method is suitable for domains that already have a website(s).

    Why? Because the second way is delegation— when using it, it may happen that your site goes down for an indefinite period of time (up to 72 hours), and if you make a mistake at some stage, you will have to correct it, which can delay the connection process up to 144 hours. Therefore, I recommend a method - delegation - to be used for new domains.

    However, with the first method, if you, for example, want to send mailings, DKIM and SRV records will not be automatically registered.

    Connecting to Mail for a Yandex domain by delegation

    To connect your domain to Mail for a domain from Yandex using the delegation method:

    1. You must have a domain that you want to connect. If you don't have it, you can buy it.
    2. You will need an account in Yandex. You can create it on pdd.yandex.ru, or use an existing one and attach all the domains that you have to it.
    3. Go to pdd.yandex.ru and enter your domain in the window, that is, connect.
    4. In the next step, you will receive a message telling you what to do to connect this domain. And one of the ways will be delegation. It will be indicated there, register with your registrar
      • dns1.yandex.net.
      • dns2.yandex.net.

      Please note that there is net at the end and some registrars need to add a period at the end.

    5. Next, after you have registered DNS records with the registrar, you need to wait 72 hours. If you've ever purchased a domain and hosting, you've probably done this step, so you won't have any problems registering DNS records.
    6. Register in the mail for the domain pdd.yandex.ru A an entry from the IP of your server.

    Let's look at the screenshots of what it all looks like. I have a domain gerasimovmail.ru, I bought it on , and there are already DNS servers inside the domain management. I went there and registered dns1.yandex.net and dns2.yandex.net In reg.ru there is no need to put a dot at the end. I clicked “Change”, waited for a while, in Mail for the domain from Yandex I saw a confirmation icon, a Play icon - the domain is connected and delegated to Yandex.

    When I clicked on this link, I saw the DKIM and SRV entries. That is, from this domain I can already send a newsletter, in addition to other functions that I received: cloud from Yandex, mail from Yandex, and I can mobile application view the mail that will be sent to me at this address. This was the first way.

    Connecting to Mail for a domain from Yandex by attachment

    Now let's talk about domain attachment. This method, I repeat, is suitable for domains that are already hosted, that is, there is a website on this domain, and we need:

    1. Domain
    2. Yandex account
    3. Enter our domain into pdd.yandex.ru and click Connect domain.
    4. Confirm domain ownership in one of 4 ways. Let me remind you that attaching a domain consists of 2 stages - confirming and changing MX records. So, 4 ways to prove ownership:
    5. Adding a CNAME record
    6. Changing the contact mailing address at the registrar
    7. or Delegate, but we have already talked about this method.

    The first way I personally prefer to confirm domain ownership is by uploading a file to the site directory.

    There is still such a moment. If you bought new domain, then the same best way- delegate. But if you bought a used domain that was already owned, the previous owner of the domain may have already connected it to mail for the domain. In this case, delegation will not suit you, at least at the first stage. You will initially need to confirm ownership of the domain, i.e. choose one of the first three methods.

    If you have a new domain, then delegation is perfect for you, you just have to wait.

    1. So we domain ownership confirmed, then wait for the check or click the Check button.
    2. Register MX records. There is also a button Check MX records, click on it, and if the MX records have already been registered, then you can use the domain and create mailboxes on it.

    Let's look at the images. This is what Mail for a domain from Yandex looks like, when you log in with your login, add your domain, a page will open that says that you can delegate either Step 1: Verify domain ownership:

    1. Upload a file with a certain unique name containing certain text to the root directory of your site.
    2. When you have done this, click Verify domain ownership, or wait for automatic verification.

    Once you have verified domain ownership, Step 2. Set up MX records.

    Let's see what the Domain Verification step looks like. You go to your hosting, create new file with the required unique name, and inside this file, click Edit and add the required line, it is also unique.

    Next, after you have done this and clicked the Confirm domain ownership button, you will see the next step - We are waiting for the installation of MX records. Step 2. Set up MX records. Here you need to go again to the DNS editor of your hosting, most likely the domain has already been transferred to your hosting, and there you need to go to the DNS editor and register MX records of the form: Subdomain name - @, Record type - MX, Data - mx. yandex.net. (note - net), Priority - 10.

    Let's see what it looks like. This domain that I connected is located on my CloudFlare - this is a special CDN server that allows you to load a site from those DNSs that are geographically closer to the person who enters address bar my website. There is also protection against bots and protection against DDoS attacks. CloudFlare has several packages, I use the free one.

    Next, I go to my domain in the DNS editor, you go to your server, to your hosting and find these A-records, where you see the A-record, IP address, and I enter the MX record and its parameters here. Here the TTL record can be selected automatically, in in this case I have 10 minutes, Add an entry. And in CloudFlare, when you add this entry, you will be able to change the priority. It may be different in your DNS editor; perhaps you can immediately set the priority.

    After I made this entry, I clicked in Mail for the domain from Yandex Check MX records, and when the MX records are checked (it may take some time, up to 72 hours), you will see the following message - Domain connected. There will be no entry “Delegated to Yandex”. You can see that there is also a link to the DNS Editor, however, it will not work. Changes you make here in this editor after connecting will not take effect until you delegate the domain.

    After the domain is connected, you can create a mailbox (mailboxes) - everything is the same as on regular Yandex— there you can change your password, create a name, and also get 10 GB on Yandex disk, and even send mailings to those people who have created mailboxes on your domain.

    The nuances of connecting a domain to Mail for a domain from Yandex

    1. The method of connecting Mail for a Yandex domain is Delegation - it is better to choose for a new domain, because the site may become unavailable for several hours.
    2. After attaching a domain by changing MX records, although the DNS editor will be available, changes from it will not be applied. I mentioned this a little higher. There seems to be a link to the DNS editor, but it will not work.
    3. After attaching, all Yandex functions in mail will become available - translation into another language, spam protection, cloud hosting, 10GB on disk, but you will not be able to use Yandex.Money, Yandex.Direct, Yandex.Music from this account, that is, for these purposes you will need to create separate account.
    4. You may also like


    On the Internet. DNS servers, software and hardware systems (applications) ensure the functionality of this condition. Despite the complexity of the name, the process is accessible to a person who does not have programming skills.

    Connecting a domain - why is it needed?

    Let’s assume that, for example, domenbk.ru has already been purchased, and there is a desire or need to check mail on other services, such as Yandex. But the question arises: how to use this domain to obtain the following familiar functions:

    • Convenience of the application.
    • Translation of text from one language to another.
    • Familiar interface.
    • Calendars and storage.
    • Secure storage of information.
    • Filtering and spam protection.

    The first solution is to set up mail forwarding within the hosting. Mail registered under the domain domenbk.ru will arrive at another address, for example yandex.ru.

    The other two options are more complicated. They are appropriate for the following cases:

    • Creation of corporate mailboxes (a mailbox of this type is registered for each employee: [email protected]).
    • For mailings from an existing domain, you need to ensure the delivery of letters that are not defined as spam.
    • To create mailboxes for users who are registered on the portal with an identical domain name.

    Connecting mail for business: example of Yandex hosting

    In order to connect a specific position to mail for the Yandex domain, you can use two solutions:

    • By confirming the right to own the domain, after which setting up an MX record will become available. In this case, DKIM and SRV records are not registered automatically.
    • Delegation of a domain to Yandex. In this case, the site will become unavailable for up to three days, so this option is suitable for recently installed domains.

    How to delegate a domain?

    In order to delegate a domain to Yandex, you need the following:

    • Registered domain.
    • Account in Yandex, which is registered at pdd.yandex.ru.yandex.

    • The domain needs to be connected to pdd.yandex.ru.

    The domain that is being connected is assigned DNS:

    • dns1.yandex.net.
    • dns2.yandex.net.

    After three days, an A-record with the server’s IP address is indicated in pdd.yandex.ru.

    How to attach a domain?

    This method is suitable for hosted domains (the site is already located there). To attach a domain you will need:

    • Registered domain.
    • Yandex account.
    • Entering and connecting a domain to pdd.yandex.ru.
    • Confirmation of ownership in the following ways: a file is uploaded to the site directory (recommended); a CNAME record is added; by changing the mailbox address at the registrar; delegation (not suitable for repurchased domains).
    • Receiving test results.
    • Prescribing
    • Waiting for the connection to end (takes up to 72 hours).
    • Checking the domain status (indicates information about the successful completion of the connection and domain delegation).

    Points to remember

    • When delegating, the site will be blocked for 72 hours, so this method is best used for new domains.
    • Attaching MX records activates the DNS editor, but changing the editor does not apply.
    • The availability of Yandex functions in mail will become possible after attachment. It is worth noting that three positions constitute an exception and are limited - these are “Yandex.Money”, “Yandex.Direct”, “Yandex.Music”.
    • Newsletters inside corporate mail- allowed.

    Removing a domain from delegation

    Hosting has the right to remove one or another domain from delegation. This procedure ignores the specified DNS servers. If a domain is removed from delegation, then access to it is impossible. Both the owners and the registrar can initiate withdrawals.

    The reason that affects domain redelegation may be the fact that the initiator of the removal - the owner - independently sets the UNDELEGATED status for sites and services that need to be disabled.

    If the initiator is the registrar, then the withdrawal occurs as a result of the following reasons:

    • When the registration period has expired, it is blocked for the period specified in the registrar’s rules and upon its expiration is deleted from the register);
    • detection of a virus that replaces content, resulting in a phishing page;
    • data confirming the right to own the domain has not been provided;
    • DNS servers are not working correctly;
    • court decision to cancel registration.

    The reasons for redelegation are clarified when contacting the registrar's technical support, if the hosting rules established by the registrar are not violated.

    Finally, it is worth mentioning that the user can independently check the domain delegation. There are services on the Internet that will help you find out this information. They are easy to work with and the procedure only takes two minutes. The user needs to enter the domain name in the appropriate line and click the “Check” button.

    Free email services run out every day short names for mailboxes. It is considered bad form for a company to use email on free services. However, it will be very expensive for a small company at the start of its existence to spend money on purchasing an expensive server, license, technical support and communication channel.

    Of course there is a way out!

    Absolutely usable free service email: "Yandex: mail for domain."

    However, you will still need some minor investments: one or more domain names - price about 600 rubles / year; hosting - price about 2000 rubles / year. In principle, we didn’t succeed very much!

    What we get as a result:

    • Unlimited mailbox
    • Unlimited number of mailboxes
    • Access it via Web interface
    • Customizable mail clients By IMAP protocol(simultaneous synchronization of mail on all devices)
    • Ability to create aliases and addresses for mailing groups

    What do we need?

    Need to buy domain or several domains. To do this, you need to use a domain registration service. I use RU-center (this is how it happened historically), but there are even cheaper domain name registrars (R01, REG.RU, etc.) It is also possible to register a domain through personal account hosting provider.


    Figure 10

    Now is the time to create mailboxes and start using this service.

    Figure 11

    To log into the mail service via the Web interface, you must first log out of your current Yandex account. Next, go to https://mail.yandex.ru/ and then enter your username and password. Please note: the login is entered with the domain. For example for a mailbox [email protected] the login will be exactly the same [email protected].

    Mail in your domain is configured and ready to use!


    I know many companies that have their own website, but the company’s mailbox is registered on a free service like mail.ru or gmail.com. The services themselves are developing and are quite convenient, but having your own beautiful mailbox with your own domain is amazing!

    What's wrong with a box on a free email service?

    • Well, firstly, this is the ability to choose the name of the mailbox that you want. Often, all nicknames, aliases and most company names are already taken (for example, at one time my nickname was taken and I had to add 1 at the end) and you have to add numbers, for example
    • If you send mail from your mailbox large quantity letters, then boxes on free server I get into the spam database faster than corporate ones with your website domain at the end
    • On business cards and other printed materials, on websites - everywhere mail.ru or gmail.com looks less presentable than corporate mail.

    For my blog and personal conversations with clients, I created a corporate email for the project owner, which you can see on the page.

    I will now be happy to indicate it on business cards and send it commercial offers by mail to company managers, with an offer of my services - or complex.

    Setting up corporate email on hosting

    Enter the name of the domain for which you want to create one or more corporate boxes.

    • on your hosting, look for the place where the DNS is registered from the hosting itself and add 2 entries there - dns1.yandex.net And dns2.yandex.net and click save.
    • in the second step, you need to confirm rights to the domain and the easiest and most familiar way for many is to add a file with a specific name and content, as shown in the screenshot below.

    • Once you have verified ownership of a domain, you will be required to change the MX records that correspond to it. Create a new one MX record with the following parameters:
      • Subdomain name - @
      • Record type - MX
      • Data - mx.yandex.net.
      • Priority - 10

    Note: not all hosting panels allow you to add a "" sign to the name. @ "For example, there is no such thing in the Plesk panel and the field with the name of the mail domain is left empty.

    After applying all the settings, some time must pass - from several minutes to 24 hours - for DNS records and mx to bind to the domain and your mail to work.

    All that remains is to create a mailbox or several. To do this, go to the page pdd.yandex.ru/domain and select your domain, which we carefully attached to Yandex.

    If the outcome is ideal and all settings are applied, the message should appear green "The domain is connected and delegated to Yandex".

    We find " Add a mailbox" and enter the name and password there twice.

    Although please note that, unlike free services, here you can enter whatever name you want and everything will be unique because This is your personal domain and only you can create all mailboxes. can be done with at least one letter or number, for example 1@site

    The number of mailboxes seems to be limited by Yandex to 1000 pieces, but I don’t think anyone will need even 100 Mailboxes. In any case, now you need to check the functionality of the box.

    We go to the Yandex mail website - mail.yandex.kz and log in using your login (or your entire mailbox) and password. To check, you can send yourself a letter from another mailbox to the newly created one.

    By the way, I advise you to install the Yandex mail application on your smartphone. It is simply incredibly stylish and convenient, and you can simultaneously connect several corporate accounts at once.

    14 likes

    June 3, 2013 at 03:52 pm

    How Yandex.Mail for domains works

    • Yandex company blog

    Several years ago we suggested that our own postal services, deployed in companies - especially small ones and without their own system administrator - cause more trouble than they bring benefit. And over time everything more people will transfer responsibility for storage and processing emails outsourced special services. This is how we got Mail for Domains.

    As time has shown, we were not mistaken, and today Mail for Yandex domains is postal service in Runet. In total, more than 200 thousand domain names and almost 3.5M mailboxes are connected to the SDA. Every day, about 200 domains are connected to traffic rules. In this article we will tell you how traffic rules work, and we will be happy to answer your questions in the comments.

    During its existence, traffic rules have acquired many additional functions: integration with the address book, support for the jabber server, mailing lists, import of mail from the user’s previous servers, and, of course, an external API for automating requests. For example, us for a long time asked to make sure that a user of a third-party site, authorized on it, immediately gets into his mailbox - without re-authorization in Yandex.Mail for domains. And our API made it possible to implement this method of passwordless authorization.

    All the features that SDA offers require integration with various components of Yandex products and more. At its core, traffic rules are an integration service that brings together disparate components under the control of a domain administrator.

    The traffic rules start with the domain: you need to connect it and check that the domain owner and the traffic rules administrator are the same person. It happens that domains for one reason or another are disconnected from traffic rules at the DNS level. To prove ownership and to confirm the status of a domain, we use a verification queue system consisting of several verification queue storage servers in relational DBMS and a distributed locking cluster based on MongoDB.

    In order not to overload the servers hosting domain sites or zone DNS servers with checks, each next check confirmations occur with increasing time intervals - starting from five minutes and ending with 24 hours. Domain status checks occur more frequently - approximately once every four hours at regular intervals. This approach can significantly reduce the load on check queue workers. Once a domain is confirmed, its administrator has access to all basic functions and can create mailboxes.

    To maintain a universal approach and reduce the number of errors, we have developed an internal mail API for domains, which can be used by other Yandex components for exchange necessary information. For example, the public mail API for domains is one of these components. Public API calls are translated into generic internal API calls. Any actions in the traffic rules web interface also call internal API methods.

    Depending on the required actions, the internal API call handler can access certain Yandex components. The main principle when designing new functionality is not to store information on the SDA side that is already stored somewhere else. An exception is made only for requests that are time-critical - they have to be cached.

    For example, to create a new mailbox, you need to create a new user in Passport, then initialize the Mail storage for this user and configure the new mailbox exactly as chosen by the domain administrator.

    If a shared address book is enabled for a domain, then each call to the methods for creating or deleting a mailbox is accompanied by additional API calls address book to change the domain book. Thus, information about new domain recipients instantly becomes available for search. And if it's on general list contacts in Jabber, then the user must also be added to the contact list on the Jabber server side.

    With such integration great value acquires service response time and processing of possible errors that may occur. There are mainly two types of errors: network and logical. To complete the picture, let’s look at the list of services and the features of integrating traffic rules with them.

    Passport

    In fact, this is the main source of data for traffic rules, no less important than the database, and in some places even more. The Traffic Regulations communicate with the Passport via the internal API. HTTP protocol. Any errors in the Passport are critical. If Passport returns an error or there is a failure in communication with Passport, we broadcast the error to the user and cancel actions already performed in the database or other services. Thus, the transactional nature of operations between different integrated services is supported: for each command there is its antipode - the command to cancel the operation.

    Mail

    This key service, which the domain administrator manages through traffic regulations. Creating a mailbox requires a large amount of calculations, so it takes place in background. A queue of atomic operations is formed that are necessary to complete the registration: create a mailbox, apply the basic settings specified for the domain, etc. Network errors in this case, they are not so critical, therefore, in case of problems, the operation is quietly postponed until later, in another distributed queue; the processors of this queue diligently try to adjust the box within 24 hours after the failure.

    DNS

    Approximately every third SDA domain hosts a DNS zone on Yandex servers. Errors in working with the DNS backend are considered critical only in the event of network failures and complete inability to write to the database. In all other cases, algorithms are triggered that allow solving the user’s problem.

    For example, at the time of domain delegation, Yandex copies some of the records from the previous DNS servers, so that the user does not have to do the tedious work of carefully transferring the zone. In this case, a situation may arise when the root record of a domain is of type CNAME, which is contrary to the standard. A user with such a CNAME record cannot enable Yandex.Mail on his domain, so such a record will be skipped during import.

    Logging and Logging

    As in any large farm, there are no protocols here. SDA maintains detailed logs for all interactions with other Yandex components. These logs can often help you find a problem before it becomes noticeable to users. Special monitoring software ensures that the service works quickly and efficiently. system logs. In case of major accidents or errors, when the request processing time increases significantly or errors appear in the responses, system administrators notice this within a few minutes and begin to repair it at any time of the day or night. But more on that next time.

    We are waiting for your questions!