Skip to main content
Connect Selectel mail service
Last update:

Connect Selectel mail service

  1. Create an email resource.
  2. Create a TXT record to confirm domain rights.
  3. Add a domain to the resource.
  4. Create a DKIM record.
  5. Configure the DMARC record.
  6. Set up an SPF record.
  7. Configure sending via SMTP.
  8. Optional: customize the handling of spam complaints.

1. Create a mail resource

  1. In the Control Panel, on the top menu, click Products and select Mail Service.
  2. Click Create Resource.
  3. Enter a name for the resource. The name can be any name, it will only be used in the control panel.
  4. Click Create.

2. Create TXT record

To add a domain to a resource, you need to first confirm the rights to it — create a TXT record for the domain with a unique resource key. It may take up to 72 hours for the record to propagate to caching servers.

  1. In the Control Panel, on the top menu, click Products and select Mail Service.
  2. Open the resource page → Information tab.
  3. Copy the value into the Domain Ownership Verification Key field.
  4. Go to the domain registrar panel where your domain's resource records are stored.
  5. Create a new resource record for the domain.
  6. Specify the record type as TXT.
  7. Specify the record name — the name of your domain, for example, example.com.
  8. Paste the record value of the form 74f878e2-dia4-477a-ccc5-989f428173f9 that you copied in step 3.

3. Add a domain to the resource

No more than three domains can be added to a resource.

  1. In the Control Panel, on the top menu, click Products and select Mail Service.
  2. Open the resource page → Information tab.
  3. In the Bound Domains block, click Add.
  4. Enter the name of the domain for which you created the TXT record, without specifying a protocol.
  5. Click Add.

4. Create a DKIM record

Once changed, DNS records can be updated for up to 72 hours.

  1. Go to the panel of the domain registrar that manages your domain.

  2. Create a new resource record.

  3. Specify the record type as TXT.

  4. Specify the name of the record:

    selcloud._domainkey.example.com

    Here example.com is the name of the domain you added to the resource.

  5. Specify the value of the record, you can copy it in the control panel: in the top menu click ProductsMail service → page of the resource to which the domain is bound → Information tab → domain card → DKIM line.

5. Configure DMARC record

Once changed, DNS records can be updated for up to 72 hours.

  1. Go to the panel of the domain registrar that manages your domain.

  2. If you already have a DMARC record, change the value of p to quarantine, for example:

    v=DMARC1; p=quarantine;
  3. If you do not have a DMARC record, create one:

    • record type is TXT;
    • the record name is _dmarc.example.com, here example.com is the name of the domain you added to the resource;
    • value — v=DMARC1; p=quarantine;.

6. Customize SPF record

Once changed, DNS records can be updated for up to 72 hours. A domain can have only one SPF record.

  1. Go to the panel of the domain registrar that manages your domain.

  2. If you already have an SPF record, add an include:spf.mail.selcloud.ru block to it, for example:

    v=spf1 include:spf.mail.selcloud.ru include:domain2.com ?all

    Here:

    • include:spf.mail.selcloud.ru — added block;
    • include:domain2.com — an example of the rest of the contents of the record.
  3. If you don't have an SPF record, create one:

    • record type is TXT;
    • the record name is example.com, here example.com is the name of your domain;
    • record value — v=spf1 include:spf.mail.selcloud.ru ?all.

7. Configure SMTP sending

You can use any email address on the domain for which you have connected an email service as the sender address.

In the settings for the utility that your server uses to send mail, enter the data to send:

  • server name (hostname) — smtp.mail.selcloud.ru;

  • port:

    • port 1126 — if you need to establish a no SSL / STARTTLS connection;
    • port 1127 — if a TLS (SSL) connection is to be established.
  • login and password can be viewed in the control panel: in the top menu, click ProductsMail Service → the page of the resource to which the domain has been added → the Information tab.

To configure mailings from a server on Linux via the sSMTP utility, use the instructions to Configure Mail Sending via sSMTP on Linux.

Note the possible errors in the SMTP dialog.

8. Optional: customize the handling of spam complaints

To automatically unsubscribe mail.ru domain zone addresses from which spam complaints have been received, configure complaints acceptance in postmaster.mail.ru and enable forwarding of complaint reports to fbl@mail.selcloud.ru.

Complaints from addresses of other email providers, such as Yandex or Gmail, are handled by Selectel mail service without additional settings.