本文介绍了如何为具有相同TXT和CNAME的Mailgun配置DNS?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!

Mailgun告诉我为 mg.mydomain.com 设置一个 TXT 记录,值为 v = spf1 ... 加一个 CNAME 记录 email.mg.mydomain.com 价值 mailgun.org

Mailgun is telling me to set up a TXT record for mg.mydomain.com with a value of v=spf1 ... plus a CNAME record for email.mg.mydomain.com with value mailgun.org.

我这样做,邮件验证我的域名问题。问题是当我发送电子邮件,某些接收邮件服务器拒绝我的电子邮件消息发件人地址被拒绝:域未找到。我很确定这是因为mg.mydomain.com不存在 - 我没有一个 CNAME 。但是,我无法创建一个 CNAME ,因为它已经用于 TXT 记录。

I did that, and mailgun verified my domain no problem. The issue is when I send emails, certain receiving mail servers are rejecting my emails with message "Sender address rejected: Domain not found". I'm pretty sure this is because "mg.mydomain.com" doesn't exist -- I don't have a CNAME for it. However, I can't create a CNAME for it because it's already used for the TXT record.

所以现在我不知道该怎么办我可以在不同的 TXT 记录中将这个 v = spf1 释放 mg。 CNAME ,以便发件人验证可以在这些挑选服务器上工作?

So now I don't know what to do. Can I put this v=spf1 thing in a different TXT record so that I can free up the mg. CNAME, so that sender-verification will work on these picky servers?

推荐答案

似乎缺少的成分是 mg.mydomain.com

A

mg.mydomain.com.  A  nnn.nnn.nnn.nnn:

如果 email.mg.mydomain.com CNAME mydomain.com mg.mydomain.com 等在同一个DNS区域。并且有一个一个记录,其中ip指向主机名,然后设置 CNAME TXT MX 记录应该很简单:

If email.mg.mydomain.com CNAME is in the same DNS zone as mydomain.com, mg.mydomain.com, etc. and there's an A record with the ip pointing back to the hostname then setting up the CNAME, TXT, and MX records should be straightforward:

CNAME

email.mg.mydomain.com.  CNAME   mailgun.org.

TXT

mydomain.com.   TXT  v=spf1 a include:mailgun.org ~all

(可选用于接收)

MX

mydomain.com.   MX  mxa.mailgun.org.
mydomain.com.   MX  mxb.mailgun.org.

这篇关于如何为具有相同TXT和CNAME的Mailgun配置DNS?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-08 02:53