SPF record

Hello,
Single exchange server.
5 e-mail domains
Two mx records
One spf record in one „primary“ domain public dns.
Spf v=spf1 mx –all

What about other 4 domains

I think that someone trying to spoof this 4 domains e-mail addresses and sends spam.
Do I need to add spf record to other 4 domains and how to configure spf for other 4 domains.
LVL 1
AndyAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

MaheshArchitectCommented:
SPF record need to be created for each domain you use to send outbound emails
0
MaheshArchitectCommented:
what you can do, instead of using MX or A in SPF, you could use simply IP4 addresses which are used to send outbound emails

for example v=spf1 ip4:x.x.x.x ip4:x.x.x.x ~all

also if you are using any other 3rd party bulk email provider, you need to include their SPF host to your existing SPF record

Ex:
V=spf1 ip4:x.x.x.x ip4:x.x.x.x include:_spf.google.com ~all
1

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
AndyAuthor Commented:
Hello,
thank you.
So,my primary domain has v=spf1 mx –all
Can I add this v=spf1 ip4:x.x.x.x ip4:x.x.x.x ~all to other 4 domains?
0
Acronis True Image 2019 just released!

Create a reliable backup. Make sure you always have dependable copies of your data so you can restore your entire system or individual files.

MaheshArchitectCommented:
any email goes out from your exchange server takes whatever domain name as primary SMTP domain, SPF record would be required for that each domain and it should remain in format of
V=spf1 ip4:x.x.x.x ip4:x.x.x.x ~all for all domains
 you need to ensure whatever Ips you enter there are only IPs which are used to send outbound email from your servers
0
MichelangeloConsultantCommented:
It's best to keep MX if you use MXes to send out emails so that if your MXes ip change you do not need to remember the dipendency.
If you do not use MXes to send out email you should not include MX clause.
Secondary domain can just include primary domain
I left mailup ips and office365 ips as examples
contoso1.com.		300	IN	TXT	"v=spf1 mx ip4:x.x.x.x ip4:x.x.x.x/21 include:spf.protection.outlook.com include:musvc.com -all"
contoso2.com.		300	IN	TXT	"v=spf1 include:contoso1.com -all"

Open in new window

0
nociSoftware EngineerCommented:
beware of the difference betweeen -all and ~all

+all = NO SPF in use, a free for all.....
~all =  use other means to determine the final state if address don't match
-all = Forbid other addresses as sender for this domain   (prefered setting)
0
MaheshArchitectCommented:
~all - soft fail
-all - hard fail - instructs receiver if sender ip does not match to any of Ip in spf record by any means, outright reject that email

If u want to use -all, better use ip4:x.x.x.x with included lookups if any
0
Prabhin MPEngineer-TechOPSCommented:
Hi,
Like mahesh said configure the SPF record with the outgoing server.
Setup DMARC record to make some more security.
0
AndyAuthor Commented:
OK
Thanks for the hints
I decided to implement this kind of spf record on other 4 domains
"v=spf1 include:primary-domain.com -all"
When you add this to all your domains and point them to your primary domain, the rules from the primary domain are also applied for the other domains.
Primary spf
Spf v=spf1 mx –all
Other 4 domains
v=spf1 include:primary-domain.com -all
Is this OK?
thank you for your good advices
0
MaheshArchitectCommented:
Yes, you can do that as well
Only thing u need to ensure that primarydomain.com covers all public IPs which are used to send outbould emails for all domains and no forgein public ip is there
0
nociSoftware EngineerCommented:
Also be aware that  you need to keep within  DNS packet limits (sizewise)...  and that no more then 7  lookups are allowed for SPF.
mx , ptr, a & include are lookups.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Exchange

From novice to tech pro — start learning today.