Linode Forum
https://forum.linode.com/

SPF records for multiple domains with same MX
https://forum.linode.com/viewtopic.php?f=11&t=5528
Page 1 of 1

Author:  hewbert [ Fri Apr 30, 2010 2:15 pm ]
Post subject:  SPF records for multiple domains with same MX

I realize that SPF records have been covered very well a few times on these forums, but I'm still not perfectly clear on my particular situation. It's a simple scenario: different domains that use the same MX (the MX is a subdomain of one of the domains).

Domain MX
------------ --------------------
host1.com mail.host1.com
host2.net mail.host1.com
host3.org mail.host1.com


This is what I originally thought the TXT record for "host1.com" would look like:
host1.com - v=spf1 a mx ptr ip4:xxx.xxx.xxx.xxx mx:mail.host1.com mx:host2.net mx:host3.org ?all
mail.host1.com - v=spf1 a ?all


Mail would originate from each domain, but the MX are all "mail.host1.com".

Any input on the correct way of setting this up would be most helpful. I feel like I'm getting something backwards or putting unnecessary information in the records.

Author:  Stever [ Fri Apr 30, 2010 5:57 pm ]
Post subject: 

Ultimately the SPF record will be interpreted as a list of IP addresses, and it is unnecessary to list the same IP address more than once, even if it is known by different names.

So if all host1.com email is going to be sent from the same host, you probably should pick just one mechanism to specify its IP. Which mechanism to use is up to you - I would choose whichever is most likely to stay constant over time and over all your domains.

For me, whenever I add a domain to my mailserver and that server is the only handler of both incoming and outgoing mail for that domain, I go with this:
Quote:
v=spf1 mx -all

Page 1 of 1 All times are UTC-04:00
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/