-
-
Notifications
You must be signed in to change notification settings - Fork 373
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
Support parsing Office 365 Authentication-Results #490
Comments
Ugh, this is worse than you thought. Not only is it missing the I have no idea how to even start trying to parse that... What are the second domains? This format doesn't seem to follow the spec at all :( |
Yeah i understand what you mean, they are a bit of a mess. Here are 3 more examples, let me know if i can help at all. So i have another example as well (email that is internal to organisation)
Another from gmail -> recevingdomain.com
So domain.com/domain1.com is the domain(s) the email is dkimed with, so in that last case domain.com is a mail gateway (hence why spf fails). An example not using a mail gateway hubspot.com -> 123.onmicrosoft.com:
|
These examples also introduce And the last one also has the |
Oh, wait, no it doesn't ( I added a sort of hack that handles the |
I think the above commit fixes all of the issues you've seen. If you can test out the myget nuget packages, let me know how it goes (might take 30 minutes or so for the fix to roll out). |
Just tested the latest myget package, works fine with everything office 365 throws at it. Thanks |
Awesome 😎 |
Is your feature request related to a problem? Please describe.
Some email providers (notably Office 365) generate a, Authentication-Results without a authserv-id at the beginning of the authentication-results header.
Example (redacted)
Authentication-Results: spf=fail (sender IP is 1.1.1.1) smtp.mailfrom=eu-west-1.amazonses.com; recevingdomain.com; dkim=pass (signature was verified) header.d=domain.com;domain1.com; dmarc=bestguesspass action=none header.from=domain.com;
Currently AuthenticationResults.Parse throws
Describe the solution you'd like
AuthenticationResults.Parse should handle Office365 Authentication-Result values without throwing.
The text was updated successfully, but these errors were encountered: