We are constantly getting rejected emails due to SPF records. Please can some explain how the txt file should be written, where it should be stored and the IP address needed. Currently we have the SPF records on our internal mail server with a specific internal ip address + we have the same SPF record on our ISP with the IP address of our external IP for the mail server.
This is the latter - v=spf1 ip4:220.127.116.11 mx:mail.haygarth.co.uk ~all (saved as a txt file on our ISP)
The recent error we had is this
550-5.7.1 sender <firstname.lastname@example.org> via mail.haygarth.co.uk
(109-231-224-50.cust-109.exponential-e.net [18.104.22.168]) SPF result
Fail; #702 (n496Fu131503210700) 550 5.7.1