Skip to content
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

Improve out of date spam by verifying if the email address domain exists #366

Open
1 task
jelly opened this issue Aug 3, 2021 · 0 comments
Open
1 task

Comments

@jelly
Copy link
Member

jelly commented Aug 3, 2021

Use python-email-validator to verify if a mx record exists for the email domain:

from email_validator import validate_email, caching_resolver
resolver = caching_resolver(timeout=10)
>>> valid = validate_email('ba@lmaoaooaa.com', dns_resolver=resolver)
  • can we use memcached for caching mx records or do we not have to care as we have a local resolver.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant