Configure SPF record for multiple email domains hosted on a single server

Posted on 2008-10-21
Last Modified: 2013-11-30
We use Kerio mail server for multiple email domains, with separate IPs for each domain. We also use Windows SMTP service for sending mails from an application(say, email domain is domain A with IP A). Kerio SMTP service is listens to IP B, and domain B in Kerio  is linked to IP B.

When I send mail from domain B, the source IP is displayed as IP A. I configured SPF record for domain B and when I tested that, I found this.

Would appreciate if anyone can advise me on what is the correct configuration
Question by:Rachelb
  • 2
LVL 26

Expert Comment

ID: 22775844
When you send mail, it's going to come from the primary IP address, no matter what IP that domain is listening on. This isn't a big deal, and I would probably just add all the IPs to the SPF record for each of the domains.

"v=spf1 ip4: ip4: ip4: ip4: -all"

Author Comment

ID: 22777060
Thank you.
It is not about SPF alone. I want the mails from different domains to go from different IPs.I think bacause of the volume of mails from a single IP, we get greylisted, our mails to Yahoo get dalayed, go into spam folder, sometimes don't get delivered at all.
Mail server has an option of binding the domain to a specific IP adress... will the mail go from the primary IP, even then?
LVL 26

Accepted Solution

jar3817 earned 500 total points
ID: 22777256
I'm pretty sure even if you bind it to a specific IP, it'll use the primary for sending. I know with Sendmail on Linux you can create multiple instances of Sendmail on specific IP addresses, but it sounds like you're using windows; I don't know if you can do that.

Featured Post

Do email signature updates give you a headache?

Do you feel like you are constantly making changes to email signatures? Are the images not formatting how you want them to? Want high-quality HTML signatures on all devices, including on mobiles and Macs? Then, let Exclaimer solve all your email signature problems today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The Microsoft Exchange server database may become damaged or corrupted due to many reasons, such as system failure. When this happens, it is usually urgent to restore the system to a stable and working state. There are different symptoms and causes …
Utilizing an array to gracefully append to a list of EmailAddresses
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
In this video we show how to create an Address List in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Organization >> Ad…

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now