Commit Graph

4 Commits

Author SHA1 Message Date
László Károlyi e8646ffe6c
Prepare a new release with new options 2022-06-28 19:13:04 +02:00
Reinhard Müller 1b9b0682cd Improve emulation of true SMTP process
* Check the SMTP servers in order of priority instead of random order.
* Handle SMTPServerDisconnected like a 451 status as recommended by RFC
  5321.
* Exit early by directly raising CommunicationError on the first 5xx
  SMTPResponseException.

See also the discussion at
https://github.com/karolyi/py3-validate-email/discussions/61
2021-03-11 16:09:09 +01:00
Reinhard Müller e1684f7f72 Make isort happy 2021-03-03 21:53:25 +01:00
Reinhard Müller bcbadbab65 Split mx_check into dns_check and smtp_check
This will allow us to cleanly and consistently keep the four
verification steps separate: format (regex) - blacklist - dns - smtp.
2021-03-02 18:30:13 +01:00