如何创建spf记录为spf.example.com

发布于 2025-01-27 13:17:47 字数 1574 浏览 5 评论 0 原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

意中人 2025-02-03 13:17:47

您的意思是要在绑定/DNS中“授权”自己的域?
如果,那么您应该

yourdomain.tld.             IN TXT "v=spf1 a mx ~all"

在绑定区配置文件中
v = spf1告诉它是SPF记录
“ a”告诉“ yourdomain.tld” ip从yourdomain.tld
发送邮件
“ MX”告诉您YourDomain.tld的MX服务器IP发送邮件
“ 〜All”告诉不匹配任何其他机制的SPF查询将返回“ SoftFail”。消息未从批准的服务器发送(IP
因此,如果您的DNS记录就像

yourdomain.tld.        IN      A       aaa.bbb.ccc.ddd
mail.yourdomain.tld.   IN      A       www.xxx.yyy.zzz
yourdomain.tld.        IN      MX      10      mail.yourdomain.tld.

SPF告诉

  1. 如果邮件是从aaa.bbb.ccc.ddd(“ a”)发送的,则可以
  2. 如果邮件是从 www.xxx.yyy.zzz (“ mx”)没关系

You mean to "authorize" your own domain/s in your Bind/dns?
If, then you should have

yourdomain.tld.             IN TXT "v=spf1 a mx ~all"

in your bind zone configuration file
v=spf1 tells it's a spf record
"a" tells that "yourdomain.tld" IP is allowed to send mail from yourdomain.tld
"mx" tells that the mx server IP of yourdomain.tld is allowed to send mail
"~all" tells that SPF queries that do not match any other mechanism will return “softfail”. Messages that are not sent from an approved server (the server with ip www.xxx.yyy.zzz = the ip of the mail server yourdomain.tld = "a". The server with ip aaa.bbb.ccc.ddd = the ip of the mx record of yourdomain.tld = "mx") should still be accepted but may be subjected to greater scrutiny...
So, if your dns record is like

yourdomain.tld.        IN      A       aaa.bbb.ccc.ddd
mail.yourdomain.tld.   IN      A       www.xxx.yyy.zzz
yourdomain.tld.        IN      MX      10      mail.yourdomain.tld.

the SPF tells that

  1. if the mail is sent from aaa.bbb.ccc.ddd (the "a") that's ok
  2. if the mail is sent from www.xxx.yyy.zzz (the "mx") that's ok
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文