Coder Social home page Coder Social logo

coppertone's People

Contributors

dependabot-preview[bot] avatar petergoldstein avatar taylorrf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

coppertone's Issues

Always perform DNS lookup limit validation

I started using this gem but I'm having some issues related to the DNS lookup limit.

The validation error will happen depending on the mechanism order. If I have the following DNS zone with an SPF record that results in 11 DNS lookups:

example.com. IN 	A       2.2.2.2
example.com. IN 	TXT     "v=spf1 a:s1.h.example.com a:s2.h.example.com a:s3.h.example.com a:s4.h.example.com a:s5.h.example.com a:s6.h.example.com a:s7.h.example.com a:s8.h.example.com a:s9.h.example.com a:s1.h0.example.com a ~all"
*.h.example.com. IN A       1.1.1.1

This will work, because the IP 1.1.1.1 is found in "a:s1.h.example.com":

Coppertone::SpfService.authenticate_email('1.1.1.1',
                                                   '[email protected]',
                                                   'example.com')

But this one will fail because the IP 2.2.2.2 is only found in "a" mechanism and, at this point, it exceeds the number of allowed DNS lookups:

Coppertone::SpfService.authenticate_email('2.2.2.2',
                                                   '[email protected]',
                                                   'example.com')

Is it possible to force the DNS lookup validation to always run?

I tested several SMTP servers/antispam systems and it looks like this is the most common behavior.

Thanks!

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.