How can I merge these 3 SPF txt records

你离开我真会死。 提交于 2019-12-24 04:46:10

问题


I have 3 SPF records:

"v=spf1 include:spf.protection.outlook.com -all"
"v=spf1 a ptr include:authsmtp.com ?all"
"v=spf1 a mx include:spf.mtasv.net ~all"

How can I merge them all together into one txt record?


回答1:


The merged record would look like this:

v=spf1 a mx ptr include:spf.protection.outlook.com include:authsmtp.com include:spf.mtasv.net -all

You'll have to decide which of the all mechanisms you want to use, since you can only have one in a SPF record. I have included the -all since it's the most restrictive, and is the one that should be used, unless there is a risk of valid mails being sent from a server not listed in the SPF record.

You should also consider removing the ptr mechanism, since it's discouraged to use this mechanism, since it can put a load on the receiving mail-server.

The merged record is also in risk of hitting the DNS lookup limit for SPF of 10 DNS lookups. Since the two first includes currently will result in 2 additional DNS lookups each, the total number of DNS lookups (if the ptr is still present) will be 10, which is the limit. So if one of the included records later add an additional include the evaluation of your SPF record may result in a "permerror".



来源:https://stackoverflow.com/questions/41656076/how-can-i-merge-these-3-spf-txt-records

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!