truemail-rb / truemail

🚀 Configurable framework agnostic plain Ruby 📨 email validator/verifier. Verify email via Regex, DNS, SMTP and even more. Be sure that email address valid and exists.
https://truemail-rb.org/truemail-gem
MIT License
1.19k stars 60 forks source link

[FEATURE] Collect only unique ip-addresses for target mail servers #109

Closed bestwebua closed 3 years ago

bestwebua commented 4 years ago

New feature request checklist

Feature description

This feature depends on issue https://github.com/truemail-rb/truemail/issues/108. More than one domain can resolve to one specific ip address. Multiple MX recorods can point to one mailserver DNS name, MX doesn't provide IP address directly, it provides the NAME of the mailserver. Then separate A/AAAA record lookup provides the IP address. So in this case we can get collection with not unique ip-adresses of mail servers. If reduce total count of mail_servers we can reduce email validation time. So removing duplicates make sence. @AlexeyDemidov, what do you think about this improvement?

bestwebua commented 3 years ago

This improvement is available in truemail 2.1.0.