-
Notifications
You must be signed in to change notification settings - Fork 29
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
pitt.edu #52
Comments
Your query is missing a value for the I'm not sure if the library should provide a default value, make it mandatory, add a warning to |
I'm confused. The signature for getIPStringResult is getIPStringResult(string $ipAddress, string $domain), i.e., there is no "helo" argument. |
Just had this come up for |
Found some syntax info here: https://www.jamieweb.net/blog/using-spf-macros-to-solve-the-operational-challenges-of-spf/#macro-syntax Looks to me like outside the context of processing a specific message you wouldn't be able to check spf records with these variables unless you also had some IP info. |
Throwing an Exception might be cleanest when this happens. |
<?php
$checker = new SPFCheck(new DNSRecordGetter());
$query = new Query($ipAddress, $domain, $ehlo, $sender);
$result = $checker->getResult($query);
var_dump($result->getShortResult()); // One of + - ~ ? NO TE PE
var_dump($result->getResult()); // One of Result::PASS, Result::FAIL, Result::SOFTFAIL, Result::NEUTRAL, Result::NONE, Result::TEMPERROR, Result::PERMERROR
Yes, EHLO and Sender are used in macros, which aren't widely used. Throwing an Exception has the disadvantage of stopping the execution of the check. I feel like a better solution would be to add a |
getIPStringResult("52.70.139.219", "pitt.edu")
leads to an preg_split(): Argument #2 ($subject) must be of type string error.
The text was updated successfully, but these errors were encountered: