In Mailgun, open the sending domain and copy the SPF value shown under domain verification and DNS records.

Check what DNS currently returns for the exact sending domain or subdomain you send from, not just the root website domain.

Publish one SPF record on the sending host in your DNS provider, using the value from step 1.

If the host already has an SPF record for another sender, merge the Mailgun include into that existing record instead of creating a duplicate.

Wait for propagation, re-run the DNS check, and send a test message to a mailbox you control.