Giter Site home page Giter Site logo

Merge of SPF-record about spec HOT 6 CLOSED

pawel-kow avatar pawel-kow commented on July 19, 2024
Merge of SPF-record

from spec.

Comments (6)

arnoldblinn avatar arnoldblinn commented on July 19, 2024

from spec.

pawel-kow avatar pawel-kow commented on July 19, 2024

Any use case where Domain Connect shall nuke the template solely based on SPF?

from spec.

pawel-kow avatar pawel-kow commented on July 19, 2024

I propose simple merging logic. I checked it in the mean time with Mailjet, who implement such logic on their side this way:

  • take “v=spf1” static prefix
  • for all services with SPF record
    o add all the rules to the result in the same order, excluding “all” rule
  • add “all” rule, taking the least (or most tbd) restrictive of “all” rules between the merged templates

If DNS provider supports also “reverse” use-case (explicit or by conflict management) it should also then merge the record again from the remaining templates.

I think also we should go into direction of advising generally SPF records as removable (essential = OnApply), so that in critical cases when the record gets too long or gets too many DNS lookups (standard defines 10) the customer could fix it without dropping all related templates from DNS.

@arnoldblinn , @FlorentinStafie would love to know your opinion/remarks so I can draft the change to the spec.

from spec.

FlorentinStafie avatar FlorentinStafie commented on July 19, 2024

from spec.

arnoldblinn avatar arnoldblinn commented on July 19, 2024

I actually like the idea. I would go with the least restrictive all clause, but the realitiy is that anyone who doesn't do a -all is asking for trouble.

The problem with your alternative Florentin is that you are basically saying "punt". Telling a novice user to manually edit an SPF you might as well throw them in the water with chum and great white sharks. Users don't understand SPF. Even I didn't till like five minutes

from spec.

pawel-kow avatar pawel-kow commented on July 19, 2024

Just re-opening to keep open until final wording lands in the spec.

@FlorentinStafie, just 2 comments on your questions
Re 1) Current implementation does not override, as it detect conflict -> in result one of the templates will stay the other will be removed as whole (template consistency principle we follow)
Overwrite is also not good as then only one of 2 providers will be able to send E-mails

Re 2) I could find arguments in both directions. If any of providers define ? or ~ rule, it means he had a reason for that (as mentioned by @arnoldblinn is asking for trouble, but SPF is in some areas so dark that I don't dare to claim I know all corner cases). In this sense "upgrading" his rule to - may mean that these E-mails are not delivered and this service is affected. "Least restrictive" would offer less protection but is likely to cause less issues.

I think manual intervention on an SPF, by removing rules of one of service providers shall be explicitly allowed by him (using essential = OnApply), otherwise following again template consistency principle I would not offer it.

from spec.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.