Connect Selectel mail service
For the domains you want to connect to the service, you need to create resource records in advance. Records must be created in the panel of the domain registrar that manages your domain. Once changed, DNS records can be updated for up to 72 hours.
If you need to connect the service for multiple domains, resource records must be created for each domain.
- Create DKIM-record.
- Configure DMARC record.
- Configure SPF record.
- Create a ticket to enable service.
- Configure SMTP sending.
- Optional: configure-processing-of-spam-complaints.
1. Create DKIM record
Once changed, DNS records can be updated for up to 72 hours.
-
Authorize in 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 domain name. -
Enter the value of the record:
v=DKIM1; k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKKBgQDCLdYrTXR9EHFuESawjkF3BNFN2eyrgayZ3u4qkrd4+Zy+sZcBuQXk5xcaKjNj7Z9WDoHscyp1oaN+hS3LMdCsZlBC168VUaexQzG10XnTvCIluWEtQAhF5Hoi2u9VJzZtLYcF/QhYlU6ZCbggnbJtdjquIfIHsxVvMzIKuqWo4wIDAQAB
2. Set up DMARC recording
Once changed, DNS records can be updated for up to 72 hours.
-
Authorize in the panel of the domain registrar that manages your domain.
-
If you already have a DMARC record, change the value of the
p
parameter toquarantine
, for example:v=DMARC1; p=quarantine;
-
If you don't have a DMARC record, create one:
- record type — TXT;
- record name is
_dmarc.example.com
, hereexample.com
is the name of your domain; - value is
v=DMARC1; p=quarantine;
.
3. Customize SPF record
Once changed, DNS records can be updated for up to 72 hours. A domain can have only one SPF record.
-
Authorize in 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
is an example of the rest of the contents of the entry.
-
If you don't have an SPF record, create one:
- record type — TXT;
- record name is
example.com
, hereexample.com
is the name of your domain; - record value is
v=spf1 include:spf.mail.selcloud.ru ?all
.
4. Create a ticket to connect the service
- Create a ticket. In the ticket, specify the domain from which the mailings will be sent. If you want to restrict access by IP address, add a list of IP addresses.
- If DNS records are configured correctly, we will send in a ticket the data for sending e-mails via SMTP — server name, port numbers for sending, login and password for accessing the service. If you connect multiple domains, there will be a unique login and password for each.
5. Configure SMTP sending
You can use as the sender address any email address of the domain for which you have connected the mail service.
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 — use the data from the connection ticket. A separate login and password is created for each domain.
Example settings in the Selectel blog instructions How to set up sending mail via SSMTP.
Note possible errors in SMTP dialog.
6. Optional: customize spam complaint handling
To automatically unsubscribe mail.ru domain addresses that have complained about spam, configure complaint 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.