-
Notifications
You must be signed in to change notification settings - Fork 157
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
recv: 550 IP blacklisted by Spamhaus #70
Comments
Depends on what you mean by "ignore"... There is an option Sample test:
What's your Another solution could perhaps be to extend the Validator class on your own and overwrite/change the way |
Because that server fails the transaction before the MAIL FROM command. What do you think? |
You should be able to do that in "userland", no? Maybe something like: <?php
namespace Whatever\You\Need;
use \SMTPValidateEmail\Validator;
class MyModifiedValidator extends Validator
{
protected function attemptMailCommands($domain, array $users)
{
// Bail if HELO doesn't go through...
if (!$this->helo()) {
$this->setDomainResults($users, $domain, $this->no_comm_is_valid);
return;
}
// ... (copy over rest of original attemptMailCommands() method
}
} And then in your existing calling code just load your custom Something like: <?php
use Whatever\You\Need\MyModifiedValidator as Validator;
// Your existing calling code here... Did not try it myself fully, this is just a quick idea, but sounds like it could work... |
Yes this is an idea, thanks. |
If you're up for creating a pull request to modify the behavior, go for it - just make sure existing tests pass (and/or modify/add them to cover the new behavior) and we can probably merge it (and release, with a version bump and a changelog entry etc, since this is technically a somewhat breaking change for existing consumers) |
I'm receiving a 550 error from SMTP due to spamhaus blacklist, this is not really an invalid mail error beause the email address was not given yet but I received a 550 error! This error is thrown just after the connection.
Is it possible somehow ignore this errors?
The text was updated successfully, but these errors were encountered: