Connect Selectel mail service
- Create an email resource.
- Create a TXT record to confirm domain rights.
- Add a domain to the resource.
- Create a DKIM record.
- Configure the DMARC record.
- Set up an SPF record.
- Configure sending via SMTP.
- Optional: customize the handling of spam complaints.
1. Create a mail resource
- In the Control Panel, on the top menu, click Products and select Mail Service.
- Click Create Resource.
- Enter a name for the resource. The name can be any name, it will only be used in the control panel.
- 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.
- In the Control Panel, on the top menu, click Products and select Mail Service.
- Open the resource page → Information tab.
- Copy the value into 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 — the name of your domain, for
example, example.com
. - 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.
- In the Control Panel, on the top menu, click Products and select Mail Service.
- Open the resource page → Information tab.
- In the Bound Domains block, click Add.
- Enter the name of the domain for which you created the TXT record, without specifying a protocol.
- Click Add.
4. Create a DKIM record
Once changed, DNS records can be updated for up to 72 hours.
-
Go to the panel of the domain registrar that manages your domain.
-
Create a new resource record.
-
Specify the record type as TXT.
-
Specify the name of the record:
selcloud._domainkey.example.com
Here
example.com
is the name of the domain you added to the resource. -
Specify the value of the record, you can copy it in the control panel: in the top menu click Products → Mail 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.
-
Go to the panel of the domain registrar that manages your domain.
-
If you already have a DMARC record, change the value of
p
toquarantine
, for example:v=DMARC1; p=quarantine;
-
If you do not have a DMARC record, create one:
- record type is TXT;
- the record name is
_dmarc.example.com
, hereexample.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.
-
Go to the panel of the domain registrar that manages your domain.
-
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.
-
If you don't have an SPF record, create one:
- record type is TXT;
- the record name is
example.com
, hereexample.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 Products → Mail 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.