SPF records help prevent people from spoofing your domain name in their spam email campaigns. I recently learned about this problem when I started getting bounced emails with original headers like the following:
Return-Path: <Madeleine4CE66@kerricklong.com> Received: from 220.127.116.11.dynamic.saudi.net.sa ([18.104.22.168]) by mx.google.com with ESMTP id fs12si28469498bkc.40.2012.07.07.11.25.18; Sat, 07 Jul 2012 11:25:19 -0700 (PDT) Received-SPF: neutral (google.com: 22.214.171.124 is neither permitted nor denied by best guess record for domain of Madeleine4CE66@kerricklong.com) client-ip=126.96.36.199; Authentication-Results: mx.google.com; spf=neutral (google.com: 188.8.131.52 is neither permitted nor denied by best guess record for domain of Madeleine4CE66@kerricklong.com) smtp.mail=Madeleine4CE66@kerricklong.com To: "info" <email@example.com> Subject: Newsletter From: "Henry" <Madeleine4CE66@kerricklong.com> Date: Sat, 07 Jul 2012 21:25:16 +0300 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: IPS PHP Mailer
Somebody in Saudi Arabia has been spamming people, with their emails claiming to be from my domain name! That's simply not acceptable.
To fix this, I have set up SPF records for each and every domain name I have an MX record for. Microsoft's great SPF generator made it easier to create them, too. If you've got a domain name you use for email, set up an SPF record for it!
For the record, this is what my SPF records look like, with an allowance for MailChimp to send email as me:
kerricklong.com. IN TXT "v=spf1 mx:kerricklong.com include:servers.mcsv.net ~all"