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
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Suggested Solutions

This process describes the steps required to Import and Export data from and to .pst files using Exchange 2010. We can use these steps to export data from a user to a .pst file, import data back to the same or a different user, or even import data t…
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
To show how to create a transport rule 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 Mail Flow >> Rules tab.:  To cr…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

734 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