How to make a proper SPF record(s) for a complex setup

bindspf

I have a setup with several mailing domains and one domain for the return-path and sender

So the mail header looks like:

Received: from x1.mailer1.com  ( can be x1.mailer2.com, x1.mailer3.com, x1.mailer4.com ) 

Sender name#companydomain.com@bounce.bouncedomain.com
Return-Path: <x@bounce.bouncedomain.com>

Received-SPF: neutral (google.com: a.y.z.a is neither permitted nor denied by best guess record for domain of test@bounce.bouncedomain.com)

Here are my SPF Records:

SPF Record for bouncedomain.com

"v=spf1 a a:bouncedomain.net a:bouncedomain.com include:bouncedomain.com ~all"

SPF record for mailer1.com:

v=spf1 a mx ptr mx:mail.mailer1.com -all

Questions, should this work. Do I need an SPF record published for mailer1.com?

Best Answer

You should have SPF records for each of your sending domains. It looks like you're creating a record for the receiving domain(s), which is not necessary.

Related Topic