For a receiving MTA, it seems to be unnecessary to check both the SPF record for an incoming SMTP connection, and to do an rDNS/PTR lookup.
Consider:
- Server gets SMTP connection from
aaa.bbb.ccc.ddd
, with (possibly spoofed)MAIL FROM
claiming to be frommail.example.com
- Server looks up SPF record for
mail.example.com
, and finds thataaa.bbb.ccc.ddd
either is or isn't authorised to send emails for this domain
If test 2 passed, then a PTR
lookup on aaa.bbb.ccc.ddd
should, by definition, yield something at example.com
, unless the DNS is misconfigured. If test 2 failed, then it doesn't matter where aaa.bbb.ccc.ddd
points to.
Is this correct? If so, why do some mail providers (ie. Microsoft) do PTR lookups?