FAQ – Technical recommendations |
||
The section is under development. If you have suggestions or questions that should be covered in this section, please mail us to Contact . |
||
Work with E-mail can be divided into two stages: For reliable operation of each of the steps it is necessary to make the following settings: . Settings for receipt of email: . Required: . Remember: In the domain's zone file it looks like this: @ IN MX 10 mail mail IN A 5.6.7.8 10 — Very high. 20 — High. 30 — Normal. 40 — Low. If you have a single email server, it can be of any Priority, preferably not more than 50. You can get a list of email servers of a domain using the command: # nslookup -type=mx domain.name . . Settings for email sending: This stage of setting is the most crucial, because its proper execution influences the reliability of delivery of your email to email servers of other domains. . Required: Setting and inspection of Reverse zone (Reverse Resolving): For each host there must be configured a PTR-record which returns the host name. For this name an A-record in the DNS zone of the domain must exist, which returns the IP-address of the host. This confirms the belonging of the host to the domain. . Reverse Resolve (Reverse Resolving): # nslookup -type=ptr 1.2.3.4 Non-authoritative answer: 4.3.2.1.in-addr.arpa name = web-mail.domain-mail.com. . Direct Resolve (Resolve): # nslookup -type=a web-mail.domain-mail.com. Non-authoritative answer: Name: web-mail.domain-mail.com. Address: 1.2.3.4 . Remember: There are two variants: . How to delegate an authority to send email on behalf of your domain, or what is a SPF and what is it used for? . To send e-mail on behalf of your domain, the host must be ready to undergo a series of checks on its personal trustworthiness: To manage the rights for sending e-mail on behalf of the domain, an SPF (Sender Policy Framework) technology is used. More details about the SPF technology are available on http://www.openspf.org/. The majority of modern MTAs support the SPF and provide tools for its tweaking. You can find more information about the SPF syntax on the same resource http://www.openspf.org/SPF_Record_Syntax. . The SPF-record in the DNS zone has the TXT-type and the following format: @ IN ТXT «v=spf1 mx -all» or @ IN ТXT «v=spf1 a mx -all» or @ IN ТXT «v=spf1 +a +mx -all» where: «v=spf1» — is a version of SPF-record format, for proper recognition of the record by the server. «mx» or «+mx» — is a tag that recommends to receive email from email servers of the domain. I.e. from the addresses which the checking party receives in two stages: a request of the list of email servers names, and then a request of the list of IP-addresses for each email server. «a» or «+a» — is a tag that recommends to receive email from all the IP-addresses for which there is a record of A-type in the DNS zone of the domain. ATTENTION: The tag «a» or «+a» makes sense if an IP-address of the server from which email is sent, can pass the Reverse zone check. «-all» — is a tag of the policy towards all other senders of email on behalf of your domain. . Can have the following values: «+all» — to receive email (NOT RECOMMENDED). «-all» — not to receive email (RECOMMENDED). «~all» — receipt of email at the discretion of the receiving party. . It is possible to give a server the right to send email on behalf of your domain, even if it cannot pass the check by tags «+a» and «+mx», by means of the tag: «ip4:<ip4-address>» — is a single trusted IP-address. or «ip4:<ip4-network>/<prefix-length>» — is a trusted network. . Thus, for a domain with a single trusted address [1.2.3.4] and a trusted network [3.4.5.0/24], the SPF-record will be as follows:: @ IN ТXT «v=spf1 ip4:1.2.3.4 ip4:3.4.5.0/24 a mx -all» or @ IN ТXT «v=spf1 ip4:1.2.3.4 ip4:3.4.5.0/24 +a +mx -all» ATTENTION: Other SPF-tags and their extensions, such as: [a/<prefix-length>], [a:<domain>], [a:<domain>/<prefix-length>], [ptr], [exists] and [exp] shall be used at the discretion of administrators. Tags [include] and [redirect] should be used with caution, especially if you include SPF-records of foreign domains as trusted. ATTENTION: If you use tags «a» and «ptr», you need to duplicate the addresses of hosts and networks in the tags «ip4:». . Final settings of DNS zone of the domain in the mail system should be as follows: @ IN MX 10 mail mail IN A 5.6.7.8 @ IN ТXT «v=spf1 mx -all» or, if it is necessary to specify trusted addresses and networks: @ IN MX 10 mail mail IN A 5.6.7.8 @ IN ТXT «v=spf1 ip4:1.2.3.4 ip4:3.4.5.0/24 mx -all» . Now the domain setting for receiving / sending email can be considered as completed. . For example, you can see how academically competent, in terms of mail systems, the following domains were configured: YANDEX.RU, GMAIL.COM . .
What is a Hosting company (Hosting, Hosting-operator, HSP (Hosting Service Provider))? Hosting company – is a company engaged in the provision of services on placement of equipment, data storage and processing, hosting and implementation of application software (WEB-sites, etc.) of the customer on its technical platform. The most widespread list of services of the hosting company: ATTENTION: despite of a sufficiently large list of services, all of them are of technical nature. A hosting company is not obliged to provide services on right setting and maintenance of infrastructure of the customer, except for the cases when the service is provided separately on a paid basis, and has been acquired by the customer. The list shows that only one service has a direct relationship to email – Mail hosting. An optimal solution for mail hosting can be "Universal architecture of the mail system", see Architecture. . Mail hosting. Formally, Mail hosting can be divided into two groups: It does not matter, to which group Mail hosting belongs; it should provide receipt, sending / forwarding and storage of customer e-mail, as well as provide an authorized access to it. Storage of e-mail and an authorized access to it is entirely an area of responsibility of the hosting company. Reliability of receipt and delivery of e-mail depends on the correct setting of DNS zone of the hosting company’s domain(s), DNS zone of the customer’s domain, as well as on the settings of DNS zones of mail systems with which an interaction occurs. What must be declared in the DNS zone of any domain in terms of email? IMPORTANT: A hosting company that provides the service of Multi-domain mail hosting, should take the utmost responsibility in configuring the SPF-record of email policy of the domain when configuring the DNS zone. Is required to specify not only MX-servers for incoming email, but also a list of IP-addresses / networks [ip4:2.3.4.5] or domain names [a:web123.hsp-mail.name] of all trusted Relay servers from which the customer’s email can be sent. Why? @ IN TXT «v=spf1 ip4:3.4.5.6 include:HSP-Mail.name mx -all» If the hosting is limited by a simplified SPF-record, like: @ IN TXT «v=spf1 a mx ~all» When inheriting such policy, failures of analysis and summation are guaranteed. Due to uncertainty what is meant by the field «a» – the domain of the hosting or the domain of the customer. Also very often not a starting SPF-record is indicated, but a field in the form of [include:spf.hsp-mail.name]. ATTENTION: all hosts listed as MX-servers or trusted senders in the SPF record of the domain should pass a check of the Reverse zone (Reverse Resolving). ATTENTION:It is prohibited to indicate address ranges intended for virtual WEB-hosting or other services provided to customers in the SPF-records of hosting domains. The reasons for this approach are obvious: Consequently, there is no way to go bail for the trustworthiness of these resources. In most cases, these resources are connected with other domains or not connected with any domain, for example, test resources. . How to send e-mail from WEB-site, VDS/VPS and resources on the platform of a hosting company? In this situation, we can recommend: We remind that the SMTP / Relay server is not engaged in receiving of incoming email of the domain; it doesn’t perform check of connections on the RBL / DNSBL services and must provide the Relay service only to authorized clients.. .
In order to start using the RBL.RBLDNS.RU service, it is enough to specify it in the appropriate settings of your email server. ATTENTION: To avoid loss of important email, you must: At erroneous blocking of the host you need to request an automated RBL control system to update the information about blocked domain in the section Service. If the domain is configured in accordance with our recommendations, it will be excluded from the Blocking list within 1-3 hours. .
At troubleshooting and resolving problems in delivery of e-mail, you must be able to determine the settings of the mail system in the DNS, both your own and others'. Getting a list of mail servers of the domain: # nslookup -type=mx domain.name Getting the SPF-record (s) for the domain: # nslookup -type=txt domain.name Select data rows beginning with the prefix: [v=spf1]. For the fields obtained in the tags [include] and [redirect]a request is repeated individually: # nslookup -type=txt spf.domain-include.name .
.