To avoid Gmail marking emails as "received from no-reply@domain.com via xхx.nichost.com", an SPF record is needed. However, determining the proper record has been confusing despite multiple attempts. Thus, to provide a clearer picture, the entire process will be described starting with hosting.
The domain is hosted and Cloudflare ns servers are registered, allowing for DNS management on Cloudflare. Within Cloudflare, MX records are registered for Yandex Mail for Domain (SDA) and a mailbox is created in SDA using the address info@domain.com, all of which function properly.
I was not aware of this Google feature regarding SPF perception. To ensure smooth email delivery, it is important to correctly write the SPF record, specifying the IP address from which the mail is sent and which resolves as xхx.nichost.com. This typically involves using a TXT record for the domain with syntax similar to v=spf1 +a +mx ip4:1.2.3.4 -all.
Both of these entries, v=spf1 include:_spf.google.com ip4:x.x.x.x ~all and v=spf1 redirect=_spf.yandex.net, are active on Cloudflare. Google recommends checking their support page for further guidance: https://support.google.com/a/answer/33786?hl=en.
SPF not only protects us from the sun, but also prevents email domain abuse by fraudsters. Without SPF configuration, mail reputation protection measures are futile. SPF is like a passport confirming an email's reliable and verified source. It is a single line in a TXT record containing the version and mechanisms for preventing fraud. The simplest SPF example is v=spf1 +a +mx -all, allowing all servers specified in the a and mx records to send emails on behalf of the domain.
Complex SPF may consist of up to 10 parameters including ip4, a, include, and more. The primary function is to prevent spoofing and verify a sender's domain and its IP address against the record. The receiving server compares them with allowed IP addresses and decides message security.
That's great to hear that your domain is hosted and you have Cloudflare set up for DNS management. It's also good to know that the MX records are registered for Yandex Mail for Domain (SDA) and you have successfully created a mailbox using the address info@domain.com.
To address the issue of Gmail marking emails as "received from no-reply@domain.com via xхx.nichost.com," you mentioned that an SPF record is needed. An SPF (Sender Policy Framework) record is a DNS TXT record that specifies which mail servers are authorized to send email on behalf of your domain. It helps prevent spam and improves email deliverability.
To create an SPF record in Cloudflare, follow these steps:
1. Log in to your Cloudflare account.
2. Navigate to your domain's DNS settings.
3. Create a new DNS TXT record.
4. In the "Name" field, enter your domain name (@ or leave it blank).
5. In the "Value" field, enter the SPF record. The format of the SPF record will depend on the specific requirements of Yandex Mail for Domain. You may need to consult their dоcumentation or support for the correct syntax and values to use.
6. Set the TTL (Time To Live) to the desired value.
7. Save the changes.
Once the SPF record is added, it will be published to DNS and take some time to propagate across the Internet. This propagation delay can range from a few minutes to several hours.
It's important to ensure that the SPF record is set correctly based on Yandex Mail for Domain's requirements. If you are still unsure about the correct SPF record format, I recommend reaching out to Yandex Mail for Domain's support team for assistance. They should be able to provide you with the specific SPF record you need to include in your Cloudflare DNS settings.