underthesun wrote:
Awesome, thanks for the answers. I still feel a bit confused though..
What do you mean with:
"A second IP could certainly work, if you aligned its A and PTR records for the domain in question, but certainly doesn't scale very well. " ?
Just that each individual IP address can have it's own reverse lookup (PTR), so if you have two addresses, each could be dedicated to a different domain. But you'd need a different address per domain (you can only have one PTR for an address), so it doesn't scale to something like:
Quote:
I have a lot of .coms and I want to do something like providing an email forwarding service eventually...
This case

Quote:
The thing is, since I only have one server (and that means one hostname), this means that all those systems trying to match the domain's .com to my hostname won't work would it? (namely, reverse DNS, and my hostname set under linux)
I'm setting my SPF record like this (based on godaddy's wizard):
v=spf1 mx mx:67.18.XXX.XXX -all
(where the above is my linode IP).
Is that enough?
I'm pretty sure that the "mx:" prefix is for domain names (it approves all MX servers for those domains) and not IP addresses. For that I think you want an "a:" prefix. Of course, if your Linode's 67.18.XXX.XXX address is in fact the MX for the domain in question, your earlier "mx" takes care of it already.
You might also want to start with ~all, which is a soft failure, progressing to -all (hard failure) if things are good. There's some debate about using -all (in lieu of ?all), since there's a small risk that an SPF check occurs somewhere other than at the external boundary where it's supposed to be applied (e.g., right after your server hands it off) and may incorrectly get bounced, but nowadays I think you should be fine.
You might want to take a peek at
http://www.openspf.org for further resources. It can also help you create an SPF, as well as test one that you have published.
Also, with respect to GMail, if you view full headers you can find the SPF check header GMail adds, along with the determination it made.
-- David