File tree Expand file tree Collapse file tree 3 files changed +7
-6
lines changed
Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 11# Changelog
22
3+ ## 5.2.20
4+
5+ - Don't overcount lookups caused by the ` mx ` mechanism (Closes #197 )
6+
37## 5.2.19
48
59- Make warning text consistent
Original file line number Diff line number Diff line change 1919See the License for the specific language governing permissions and
2020limitations under the License."""
2121
22- __version__ = "5.12.19 "
22+ __version__ = "5.12.20 "
2323
2424OS = platform .system ()
2525OS_RELEASE = platform .release ()
Original file line number Diff line number Diff line change @@ -454,16 +454,13 @@ def parse_spf_record(
454454 )
455455
456456 # RFC 7208 § 4.6.4: no more than 10 DNS queries total per evaluation
457- if len (mx_hosts ) > 9 :
457+ if len (mx_hosts ) > 10 :
458458 raise SPFTooManyDNSLookups (
459- f"{ value } has more than 9 MX records - " "(RFC 7208 § 4.6.4)" ,
459+ f"{ value } has more than 10 MX records - " "(RFC 7208 § 4.6.4)" ,
460460 dns_lookups = len (mx_hosts ),
461461 )
462462 host_ips = {}
463463 for host in mx_hosts :
464- # count one DNS query per MX target
465- mechanism_dns_lookups += 1
466- total_dns_lookups += 1
467464 hostname = host ["hostname" ]
468465 # --- perform A/AAAA resolution for each MX host ---
469466 try :
You can’t perform that action at this time.
0 commit comments