Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle macros in spf entries #133

Closed
jcbf opened this issue Feb 9, 2017 · 3 comments
Closed

Handle macros in spf entries #133

jcbf opened this issue Feb 9, 2017 · 3 comments
Assignees
Labels

Comments

@jcbf
Copy link
Collaborator

jcbf commented Feb 9, 2017

Although there isn't a wide spread usage , entries with macros shouldn't be processed.
For instance, gentoo.org has some.

gentoo.org. 60 IN TXT "v=spf1 include:_netblocks.spf.gentoo.org a:mail.gentoo.org mx include:%{l}.%{o}.spf.gentoo.org ?all"

@jsarenik
Copy link
Collaborator

Nice find. I have never seen anything like this before. How do the macros work? I can't see them in the SPF Record Syntax document. Thanks!

@jcbf
Copy link
Collaborator Author

jcbf commented Feb 15, 2017

Usually it's used with exists mechanism although I've observed , more recently used in include mechanism. In theory you can use in any record.
Basically you can create dynamic records using stuff like IP address, email address, helo name as placeholders.

More information in https://tools.ietf.org/html/rfc7208#section-7

@jsarenik
Copy link
Collaborator

@jcbf Thanks for the link. I will have a look at it.

jsarenik pushed a commit that referenced this issue Feb 17, 2017
jsarenik pushed a commit that referenced this issue Feb 19, 2017
Fix for #133 . Skips in include: has a %{
@jcbf jcbf closed this as completed Feb 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants