Skip to main content
Connect Selectel mail service
Last update:

Connect Selectel mail service

  1. Create a resource.
  2. Create a TXT record to verify domain rights.
  3. Add a domain to the resource.
  4. Create a DKIM record.
  5. Configure the DMARC record.
  6. Set up the SPF record.
  7. Configure SMTP sending.
  8. Optional: set up spam complaint handling.

Create a resource

An unlimited number of domains can be added to one resource. For all domains of one resource the same data for connection to the SMTP server are used. The resource's mailing statistics is displayed without a breakdown by domain.

You can create up to 10 resources in an account.

  1. В control panels go to Postal service.
  2. Click Create a 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.

Create TXT record

To add a domain to a resource, you must first confirm the rights to it. To confirm the rights, 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. В control panels go to Postal service.
  2. Open the resource page → tab Information.
  3. Copy the value into the field Domain ownership verification key.
  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 name of the record — the name of your domain, for example, example.com.
  8. Insert the value of a record of the form 74f878e2-dia4-477a-ccc5-989f428173f9that you copied in step 3.

Add a domain to the resource

An unlimited number of domains can be added to the resource.

  1. В control panels go to Postal service.
  2. Open the resource page → tab Information.
  3. In the block Bound domains click Add.
  4. Enter the name of the domain for which created a TXT record without specifying a protocol.
  5. Click Add.

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 — the name of the domain that you added to the resource.

  5. Specify the value of the record, can be copied to control panels under Postal service → page of the resource to which the domain is bound → tab Information → domain card → line DKIM.

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 the parameter p on quarantinefor example:

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

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

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 a block to it include:spf.mail.selcloud.rufor 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 name of the record is example.comhere. example.com — the name of your domain;
    • record value — v=spf1 include:spf.mail.selcloud.ru ?all.

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.
  • The login and password can be viewed in the control panels under Postal service → page of the resource to which the domain is added → tab Information.

To configure mailings from a server on Linux via the sSMTP utility, use the following instructions Configure sending mail via sSMTP on Linux.

Pay attention to possible errors in the SMTP dialog.

Optional: customize the handling of spam complaints

To automatically unsubscribe mail.ru domain zone addresses from which spam complaints have been received, set up a grievance procedure 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.