You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`check_deliverability=True`: Set to `False` to skip the domain name MX DNS record check. It is recommended to pass `False` when performing validation for login pages since re-validation of the domain by querying DNS at every login is probably undesirable.
145
+
`check_deliverability=True`: Set to `False` to skip DNS record checks for the domain. It is recommended to pass `False` when performing validation for login pages since re-validation of the domain by querying DNS at every login is probably undesirable.
143
146
144
147
`allow_empty_local=False`: Set to `True` to allow an empty local part (i.e.
145
148
`@example.com`), e.g. for validating Postfix aliases.
For the fictitious address `example@ツ.life`, which has an
@@ -393,6 +394,7 @@ are:
393
394
|`smtputf8`| A boolean indicating that the [SMTPUTF8](https://tools.ietf.org/html/rfc6531) feature of your mail relay will be required to transmit messages to this address because the local part of the address has non-ASCII characters (the local part cannot be IDNA-encoded). If `allow_smtputf8=False` is passed as an argument, this flag will always be false because an exception is raised if it would have been true. |
394
395
|`mx`| A list of (priority, domain) tuples of MX records specified in the DNS for the domain (see [RFC 5321 section 5](https://tools.ietf.org/html/rfc5321#section-5)). May be `None` if the deliverability check could not be completed because of a temporary issue like a timeout. |
395
396
|`mx_fallback_type`|`None` if an `MX` record is found. If no MX records are actually specified in DNS and instead are inferred, through an obsolete mechanism, from A or AAAA records, the value is the type of DNS record used instead (`A` or `AAAA`). May be `None` if the deliverability check could not be completed because of a temporary issue like a timeout. |
397
+
|`spf`| Any SPF record found while checking deliverability. |
396
398
397
399
Assumptions
398
400
-----------
@@ -402,10 +404,12 @@ strictly conform to the standards. Many email address forms are obsolete
402
404
or likely to cause trouble:
403
405
404
406
* The validator assumes the email address is intended to be
405
-
deliverable on the public Internet. The domain part
406
-
of the email address must be a resolvable domain name.
407
-
[Special Use Domain Names](https://www.iana.org/assignments/special-use-domain-names/special-use-domain-names.xhtml)
408
-
and their subdomains are always considered invalid (except see
407
+
usable on the public Internet. The domain part
408
+
of the email address must be a resolvable domain name
409
+
(without NULL MX or SPF -all DNS records) if deliverability
410
+
checks are turned on.
411
+
Most [Special Use Domain Names](https://www.iana.org/assignments/special-use-domain-names/special-use-domain-names.xhtml)
412
+
and their subdomains are considered invalid (except see
409
413
the `test_environment` parameter above).
410
414
* The "quoted string" form of the local part of the email address (RFC
411
415
5321 4.1.2) is not permitted --- no one uses this anymore anyway.
0 commit comments