Join multiple SPF in one string

Hart asked:

I’ve read other thread about it but I’ve 2 different string with some parameters in only one (MX) so i ask some help to join in one string only in the correct way.

1) "v=spf1 include:spf.sendinblue.com mx ~all"

2) "v=spf1 include:spf.protection.outlook.com -all"

Is correct a result string like:

"v=spf1 include:spf.protection.outlook.com include:spf.sendinblue.com mx -all"

the first record have a mx parameter that the second ercord not have, so I’ve some doubt about that

thank you for any help or explanation.

Hart

My answer:


You should include mx if the mail server which handles your incoming mail for your domain is also allowed to send outgoing mail for your domain. For most setups this is true. It is irrelevant whether it appears in someone else’s example. What is relevant is your own needs.


View the full question and any other answers on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.