Read inline please.
In
Exch said:
Hello,
I'm sending the SPF record to my provider's dns office, and I'd like
to have your opinion about the string I have written. At first I will
explain our dns and mailserver configuration:
1) We have 2 SMTP server that go out with the same public IP (one for
inbound/one for outbound).
2) This pubblic IP has an MX record, mail.mydomain.com.
3) There is a PTR record xxx.xxx.xxx.xxx.in-addr.arpa
mail.mydomain.com.
4) We also send mail through mail.provider1.com, mail.provider2.com
and a static ip yyy.yyy.yyy.yyy.
The generated text is this:
v=spf1 mx a:mail.provider1.com a:mail.provider2.com a:yyy.yyy.yyy.yyy
mx:mail.mydomain.com ?all
What do you think about this spf record? Is this correct for my
configuration?
You need to break it down.
v=spf1 means the txt record is an SPF record.
"mx" indicates all servers listed in your MX records also send mail for your
domain. So in many cases "v=spf1 mx -all" would be all you need if only
servers with MX records send mail from your domain. But you must make sure
your MX records, SMTP HELO names and PTRs match.
"a:mail.provider1.com" indicates this mail server sends mail for your domain
"a:mail.provider2.com" indicates this server also sends mail for your domain
"a:yyy.yyy.yyy.yyy" is not valid it should be ipv4:yyy.yyy.yyy.yyy for IP
addresses.
"mx:mail.mydomain.com" may also be invalid if there is not an MX record like
this:
"mail.mydomain.com MX 10 mail.mydomain.com"
The "mx:" indicates MX servers for other domains that can also send mail
from your domain. So if for instance all of your ISP's MX servers can send
mail from your domain, you would use "mx:ispdomain.com"
"?all" indicates this should be all servers that can send mail for your
domain, any mail from your domain not coming from one of these servers
should be accepted but may be marked as junk mail. it is pretty much the
same as ~all, hard fails are not allowed; hard fails should only be allowed
using -all.
In my opinion, the SPF should be kept as simple as possible, but the problem
with sending mail through your ISP, is that the way some ISPs relay their
mail, it is almost impossible to predict what relay server will be sending
mail, you should verify this with your ISP.
If the ISP servers are correct and your MX records are set up correctly your
SPF should probably look like this:
v=spf1 mx a:mail.provider1.com a:mail.provider2.com -all" or
"v=spf1 mx ipv4:<yourIPaddressCIDR> a:mail.provider1.com
a:mail.provider2.com -all"
--
Best regards,
Kevin D. Goodknecht Sr. [MVP]
Hope This Helps
Send IM:
http://www.icq.com/people/webmsg.php?to=296095728
===================================
When responding to posts, please "Reply to Group"
via your newsreader so that others may learn and
benefit from your issue, to respond directly to
me remove the nospam. from my email address.
===================================
http://www.lonestaramerica.com/
http://support.wftx.us/
http://message.wftx.us/
===================================
Use Outlook Express?... Get OE_Quotefix:
It will strip signature out and more
http://home.in.tum.de/~jain/software/oe-quotefix/
===================================
Keep a back up of your OE settings and folders
with OEBackup:
http://www.oehelp.com/OEBackup/Default.aspx
===================================