Help with SPF record setup for multiple domains

domain-name-systememail-serverspf

I have setup a mail server where the host name is mail.mail-apps.com. I have setup a wild card entry in my DNS for the IP address. The mail cname point to the wild card. I then setup an mx record that points to mail.mail-apps.com

I will have multiple domains that I will point to the IP address of the mail server. so, for example: mail.somedomain.com will point to the IP address of the mail server. In my mail server I setup a domain alias that will pick up the mail.somedomain.com. I can only have 1 IP and 1 HostName for my mail server.

For mail.mail-apps.com and the mail.somedomain.com, how do I setup my SPF records? I am so lost on how it works.

I am using hMailServer on a windows 2008 server.

Best Answer

SPF records will be created in each domain that the users on the server will be sending from. So, for instance, when you send from user@mail-apps.com, a receiving server will check the SPF record for mail-apps.com. If your mail-apps.com server sends a message from a user with an email address of user@customerdomain.com, the SPF record for customerdomain.com is what it will check.

So, given that you've just got the one server that will be doing the sending, an example SPF record would look like this:

v=spf1 a:mail.mail-apps.com ~all

This would authorize whatever host resolves at mail.mail-apps.com to send mail for that domain.

You'd want to put this entry in each domain that your server would be sending mail for.