hack3r-0m
hack3r-0m

Reputation: 750

Need help on adding feature(Support STARTTLS) to py3-validate-email

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:

any help will be appreciated.

Upvotes: 0

Views: 84

Answers (1)

Mike
Mike

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

Related Questions