-
Notifications
You must be signed in to change notification settings - Fork 46
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
SPF validation #23
Comments
@arunthampi needed SPF validation and Mandrill wasn't doing it. They submitted a PR (#22) and I merged it. I'm not against a configuration option, but do want to ask what about SPF validation is causing you issues? |
We have few domains that dont have SPF record but are valid email servers. And since version 1.1.3 we are not able to deliver emails to them. We had to downgrade to version 1.1.2. Or maybe there is missing a condition
Thanks in advance! |
hmm i'd rather have the option to check for spf than using My preference would be to have strong security defaults and let users override it at their own risk. |
In hindsight, I should have bumped this change to v1.2.x instead of leaving it on v1.1.x. My apologies for that. I too feel that strong security defaults are preferential. However, I want to make sure the adapter is still usable in non-SPF environments. Will you get a |
That's what @ciihla mean - now we are not able to receive emails from domains that doesn't have SPF record. |
I know...that's why I said I want to support the use case. |
Great. :) |
If we want to make this configurable, we could add something like From there, we could add something like |
That would be ideal. Regarding the question whether to use Shall I prepare a PR? Or will you do it? Thanks |
We wouldn't force anything. Adding the key to I can prepare the PR. |
I just thought that functionality of one gem would depend on configuration of other gem, but maybe I understand it wrong and its okay.. Anyway thank you for your willingness! |
This gem already depends on the functionality/configuration of griddler so I don't really see this option as being worse than what is already being done. To me it seems strange to have a config object for a dependency of the parent. IMO you should be doing all config through the parent. I'm also considering that the other adapters may have a use case for this. |
If you pointed that its a de-facto a parent, you are right. It makes sense to me too now. Although both options make sense to me :) On the other hand: if griddle changes the DSL how it creates an adapter or passes options to them then it would be needed to change all adapters now, right? |
Depends. You can check the arity of |
Thats good point too. You are right.. |
👍 griddler is also in favor of a version bump. I'll put together the PR for them hopefully today. |
Thanks a lot! 👍 |
If nothing else, it would be nice if the adapter handled SPF validation fails better. It's a completely silent error, responding 200 OK. I had to delve through the source to find out why some of my emails were being silently ignored. |
Sorry, I haven't had time to dig into this yet. It is on my todo list but you know how it is... @jalada You are welcome to submit a PR |
For anyone else who had emails mysteriously disappear, there is a fork to have a more lax validation instead of #22: https://github.com/vijedi/griddler-mandrill |
@tshakah that fork essentially disables SPF checks. Allowing all incoming outside of direct failures will allow several types of spam through. To everyone watching this issue: does defaulting to Note that no matter what I do for this change, the SPF result whitelist will be configurable. |
Well, it sets it to pass so long as the SPF isn't I'm happy with a configurable whitelist, defaulting to one of the options you suggested. |
Ok, that makes more sense. I've got the configuration changes done locally. I'm checking backwards compatibility with |
Awesome guys! thanks for this @tshakah |
See above mentioned PR + spf_config |
Hi, is there any update on this issue ? Are you going to merge the mentioned branch into master ? Or is there something else you would like to do first, in which case I may be able to help if you provide directions. |
It won't work without the griddler side of things done. I need to work on that and prep the adapter maintainers for the changes prior to this. |
What about accepting none spf result for now ? |
That has already been covered in this conversation |
Ok, thanks for your answer ! Sorry for bothering |
It is on my radar, trust me. There're some griddler items to iron out first. |
I really could use some way to actively respond to events that aren't passing the SPF check. These silent failures are a pain to track down when our customers have configuration issues on their end. Any recommendations? |
We're now experienceing issues with a provider cough grasshopper cough providing duplicated spf records, which do not pass the check per the rfc. But we'd still need to process these emails. Can the spf check be made configurable please? |
Sorry everyone. If someone submits a PR to change this then I'll merge it and push a release. I don't use this in production at this time so I don't have a good way to test this. |
I have a fork that allows for more granular permissions regarding SPF records because some of my cooperatives clients also need this. I am maintaining the fork here: https://github.com/zinc-collective/griddler-mandrill @wingrunr21 - My cooperative would be more than happy to take over maintenance of this gem within our github organization (or I as a person in this repository). Would you be willing to add us as a publisher on rubygems.org? I've worked a bit with @jayroh in the past if you would like to confirm that I am not a monster :). |
Well to be completely fair - I haven't had much overlap with the griddler (and associated projects) in years. That being said! .... CAN CONFIRM. Zee is most definitely not a monster! He's quite delightful, as a matter of fact. |
I am open to transferring ownership over to folks that are actively using it! Can you send me an email (on my Github profile page) and we can figure out the details there? |
I just wanted to ask why you added the SPF validation to the adapter? I think it is mandrill's responsiility to filter SPF. And if Mandrill sends the email, then griddle would not have to validate it.
Maybe Im wrong but at least it could have been optional or configurable, right? Can I do a MR with configurable this SPF validation?
The text was updated successfully, but these errors were encountered: