I used the TWC interface to send myself a message; I assumed that would neccesarily come from the appropriate IP range.
If you want a spoof test I can send a message to one of my accounts at either earthlink or verizon with an envelope from of
test@twcenter.net. Presumably that should fail.
If you want to test google, here is a procedure to do so:
1) Obtain the MX records of smtp servers that accept mail for google.com:
G:\apps\putty>nslookup -q=mx google.com
Server: Wireless_Broadband_Router.home
Address: 192.168.1.1
Non-authoritative answer:
google.com MX preference = 10, mail exchanger = smtp4.google.com
google.com MX preference = 10, mail exchanger = smtp1.google.com
google.com MX preference = 10, mail exchanger = smtp2.google.com
google.com MX preference = 10, mail exchanger = smtp3.google.com
smtp1.google.com internet address = 209.85.237.25
smtp2.google.com internet address = 64.233.167.25
smtp3.google.com internet address = 64.233.183.25
smtp4.google.com internet address = 72.14.215.25
2) If you have a valid google.com email address, use it. I will call mine "test@google.com".
3) If you have a valid twcenter.com email address, use it. I will call mine "test@twcenter.com".
4) Log in to a system that's not in your twcenter.com SPF range.
5) telnet to the smtp port at google's inbound MTA and try to send a message as your twcenter.com address (input cmds in courier):
telnet 209.85.237.25 25
220 smtp.google.com ESMTP
ehlo twcenter.com
250-smtp.google.com Hello <removed>, pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE 20000000
250-STARTTLS
250-DELIVERBY
250 HELP
mail from:
test@twcenter.com[/SIZE]
250 2.1.0
test@twcenter.com... Sender ok
rcpt to:
test@google.com[/SIZE]
250 2.1.5
test@google.com... Recipient ok
data
354 Please start mail input.
Subject: test
From:
test@twcenter.com
test
.
250 Mail queued for delivery.
quit
221 Closing connection. Good bye.
Now, if I could read the email at "test@google.com", I would be able to tell if the spoof worked. I suspect the SPF filter happens after the message is accepted for delivery, so there is no way for me to tell whether the spoof worked simply from the SMTP session.
Of course, the target domain, google.com in this case, is arbitrary. You can use this procedure to verify whether your SPF implementation is working for mail sent to any domain, provided you have a test account in that domain.