简体   繁体   English

来自服务器的邮件进入垃圾邮件-如何设置rDNS和DKIM?

[英]Mails from my server go to spam - how do I set up a rDNS and DKIM?

I have a website setup on a hosting provider and now when any mails are sent from it, they go to spam in gmail (from field looks like this: contact@mydomain.com via webserver.offshore-hosting-service.com ). 我在托管服务提供商上设置了一个网站,现在从它那里发送任何邮件时,它们都会以gmail垃圾邮件的形式发送(来自域的外观如下: contact@mydomain.com通过webserver.offshore-hosting-service.com )。

So i used mail-tester.com to test and I received a score of 7.7/10. 因此,我使用mail-tester.com进行了测试,并得到7.7 / 10的分数。

A few things still needed fixing: 还有一些问题需要解决:

1) rDNS: Delivered to internal network by a host with no rDNS This may be a false-positive, please check the reverse DNS test below to confirm or not this issue 1)rDNS:由没有rDNS的主机传递到内部网络这可能是假阳性,请检查下面的反向DNS测试以确认是否存在此问题

2) DKIM: Your message is not signed with DKIM 2)DKIM:您的消息未使用DK​​IM签名

3) DMARC: You do not have a DMARC record 3)DMARC:您没有DMARC记录

So I did the following (data has been obscured): 因此,我做了以下操作(数据已被遮盖):

1) I created a PTR DNS entry for rDNS like this): 1)我为rDNS创建了一个PTR DNS条目,如下所示:

30.61.2.94.in-addr.arpa PTR mydomain.com 30.61.2.94.in-addr.arpa PTR mydomain.com

2) DKIM: 2)DKIM:

Could someone help me figure out how to do this? 有人可以帮我弄清楚该怎么做吗?

3) DMARC: 3)DMARC:

_dmarc.mydomain.com TXT "v=DMARC1; p=none" _dmarc.mydomain.com TXT“ v = DMARC1; p = none”

After a day, I ran another mail-tester test and still got the same issues. 一天后,我进行了另一个邮件测试程序测试,但仍然遇到相同的问题。 What have I done wrong? 我做错了什么?

The one part I cannot figure out even after googling is how to setup the DKIM. 即使经过谷歌搜索,我仍然无法弄清的一部分是如何设置DKIM。 Can someone help me here? 有人可以帮我吗?

DKIM setup is quite simple Follow the below steps - DKIM设置非常简单,请按照以下步骤操作-

  1. First step is to create a SSH keypair. 第一步是创建SSH密钥对。 For Windows you can use PUTTYGen and for Linux and Mac, you can use ssh-keygen, See this for details on how to generate 对于Windows,可以使用PUTTYGen;对于Linux和Mac,可以使用ssh-keygen。 有关如何生成的详细信息请参见此

  2. Placing the public key as a TXT record for your domain in the DNS settings, depending on your DNS provider the steps of placing a TXT record may vary. 将公用密钥作为您的域的TXT记录放置在DNS设置中,根据您的DNS提供商,放置TXT记录的步骤可能会有所不同。

  3. Generating and saving the signature, so that it can be used while sending mails in the headers. 生成并保存签名,以便可以在标头中发送邮件时使用它。

  4. Validate the DKIM. 验证DKIM。

Follow this article for detailed link on each step. 请按照本文获取有关每个步骤的详细链接。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM