Connect Selectel email service
- Create an email resource.
- Create a TXT record to verify domain ownership.
- Add a domain to the resource.
- Create a DKIM record.
- Configure a DMARC record.
- Configure an SPF record.
- Configure SMTP sending.
- Optional: configure spam complaint processing.
1. Create an email resource
- In the Control panel, on the top menu, click Products and select Email service.
- Click Create resource.
- Enter the resource name. The name does not affect resource settings and is used only for work in the Control panel.
- Click Create.
2. Create a TXT record
To add a domain to a resource, you must first verify ownership by creating a TXT record for the domain with a unique resource key. Propagation of the record to caching servers may take up to 72 hours.
- In the Control panel, on the top menu, click Products and select Email service.
- Open the resource page → Information tab.
- Copy the value in the Domain ownership verification key field.
- Go to the domain registrar panel where your domain's resource records are stored.
- Create a new resource record for the domain.
- Specify the record type as TXT.
- Specify the record name as your domain name, for example
example.com. - Paste the record value, for example
74f878e2-dia4-477a-ccc5-989f428173f9, that you copied in step 3.
3. Add a domain to a resource
You can add up to three domains to a resource.
- In the Control panel, on the top menu, click Products and select Email service.
- Open the resource page → Information tab.
- In the Linked domains block, click Add.
- Enter the domain name for which you created a TXT record, without specifying a protocol.
- Click Add.
4. Create a DKIM record
After changes, DNS records may take up to 72 hours to update.
-
Go to the domain registrar panel that manages your domain.
-
Create a new resource record.
-
Specify the record type as TXT.
-
Specify the record name:
selcloud._domainkey.example.comHere
example.comis the name of the domain you added to the resource. -
Specify the record value; you can copy it in the Control panel: on the top menu, click Products → Email service → page of the resource the domain is linked to → Information tab → domain card → row DKIM.
5. Configure a DMARC record
After changes, DNS records may take up to 72 hours to update.
-
Go to the domain registrar panel that manages your domain.
-
If you already have a DMARC record, change the
pparameter value toquarantine, for example:v=DMARC1; p=quarantine; -
If you do not have a DMARC record, create one:
- record type — TXT;
- record name —
_dmarc.example.com, whereexample.comis the domain name you added to the resource; - value —
v=DMARC1; p=quarantine;.
6. Configure an SPF record
After changes, DNS records may take up to 72 hours to update. A domain can have only one SPF record.
-
Go to the domain registrar panel that manages your domain.
-
If you already have an SPF record, add the
include:spf.mail.selcloud.rublock to it, for example:v=spf1 include:spf.mail.selcloud.ru include:domain2.com ?allWhere:
include:spf.mail.selcloud.ru— added block;include:domain2.com— an example of the rest of the record content.
-
If you do not have an SPF record, create one:
- record type — TXT;
- record name —
example.com, whereexample.comis your domain name; - 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 enabled the email service as the sender address.
In the settings of the utility used on your server to send emails, enter the sending details:
-
hostname (hostname) —
smtp.mail.selcloud.ru; -
port (port):
- port 1126 — if you need to establish a no SSL / STARTTLS connection;
- port 1127 — if you need to establish a TLS (SSL) connection.
-
login (login) and password (password), which you can view in the Control panel: on the top menu, click Products → Email service → Email service section → page of the resource to which the domain is added → Information.
To configure bulk email from a Linux server using the sSMTP utility, refer to the Configure email sending via sSMTP on Linux guide.
Pay attention to possible errors in the SMTP dialogue.
8. Optional: configure spam complaint processing
You can automatically unsubscribe Mail.ru users who reported spam. To do this, configure report forwarding to fbl@mail.selcloud.ru.
- Add your domain to Postmaster and verify ownership following the Adding a domain instruction in the Mail.ru documentation.
- Create and specify a separate email that starts with
fbl@, for example fbl@example.ru, following the FBL configuration instruction in the Mail.ru documentation. Reports containing a list of users who complained about spam will be sent to this email address. - Configure forwarding of reports from the created email address to the service email address fbl@mail.selcloud.ru following the How to enable email forwarding instruction in the Mail.ru documentation.
Complaints from addresses of other email providers, such as Yandex or Gmail, are processed by the Selectel email service without additional configuration.