Read the full Authentication-Results header or mail log line for the deferred message and note which domain was looked up.

Query the SPF record for the sending domain and follow every include and redirect by hand.

Count the DNS lookups in the chain; SPF allows at most 10 before evaluation fails.

Fix the failing target: repair its DNS, remove a dead include, or replace nested includes with direct ip4 or ip6 entries where appropriate.

Resend a test message and check the new header.