mailgun / flanker

Python email address and Mime parsing library
http://www.mailgun.com
Apache License 2.0
1.63k stars 204 forks source link

is_valid_email returns different values for same input #220

Open jbenghiat830 opened 5 years ago

jbenghiat830 commented 5 years ago

calling is_valid_email on the same email address which is known to be valid returns True and False for different executions. There does not seem to be a pattern that causes the different output.

horkhe commented 5 years ago

This behavior is probably a result of DNS queries for the domain MX records returning inconsistent results. You can confirm that by running command dig MX <domain-name> a few times on the host where the check is failing.