Reputation: 750
https://github.com/karolyi/py3-validate-email/issues/19
I want to work on this pull request, but the last comment says:
any host that will be probed might or might not support STARTTLS. the protocol being negotiated is completely different from the DNS records resolving.
I need more context understanding of this comment and how can I add this feature to the existing codebase.
How should I approach it so it doesn't conflict with the rest of the parts and users can choose to enable/disable the STARTTLS?
I thought of the following approach:
STARTTLS
STARTTLS
then the rest of the transactions will be carried out after initiating starttls
from smtplib and fallback to unencrypted transaction if it fails.any help will be appreciated.
Upvotes: 0
Views: 84
Reputation: 11
STARTTLS will add encryption to the current connection, using SSL certificates. Certificates may contain one or more DNS names. Your python code should check if one of these DNS names matches the hostname from the MX record.
Upvotes: 1