-
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
All address at the same domain becomes invalid if the server responds with 421 4.7.0 Error: too many errors #60
Comments
Ok, so what does the code on php side look like for that? |
I'm basically using the sample code without customization: The $emails array contains 20 to 50 thousands of addresses when I'm facing the issue, the $sender is my company's email address. When I started to debug then I enabled the debug property by setting it true. |
Could be related to "catch-all" and/or no_comm_is_valid settings/handling ? (see catchall_is_valid property: https://github.com/zytzagoo/smtp-validate-email/blob/master/src/Validator.php#L41) and the logic inside performSmtpDance() (https://github.com/zytzagoo/smtp-validate-email/blob/master/src/Validator.php#L391) Could you maybe produce a reduced example that reproduces the issue reliably? |
A bit off topic. How many emails should we validate at the same time? |
Now I had time to dig deeper. The last error is always Example set: If you delete one of the made up mail address then the validation will work correctly. In my case I limited my batches to max 20 addresses at these providers as a hotfix. Thank you for your assistance. Merry Xmas! ;) |
I'm doing batch validations for my mail lists (ten thousends addresses) . A few email provider gives me error like below with varying account status (inactive, deleted, blocked etc):
550 5.1.1 <[email protected]>: Recipient address rejected: u'SMTP service is disabled for this account. AccountId: 12345678. Reason: The account is INACTIVE'
Unexpected response to RCPT TO: 550 5.1.1 <[email protected]>: Recipient address rejected: u'SMTP service is disabled for this account. AccountId: 12345678. Reason: The account is INACTIVE'
(I've changed the mailbox name to placeholder)
After errors like this all address at the same domain becomes invalid even if I got back
250 2.1.5 Ok
for the most of them.This problem only occurs if I'm validating large batches. If I only validate 50 or so the issue doesn't occur.
The text was updated successfully, but these errors were encountered: