Error Seting Spf for mail Server

domain-name-systememailspf

I try using spf record to reduce email spoofing , that cause my domain blocked by others .
I have 3 mail server :
mail.mydomain.ac.id
mail.a.mydomain.ac.id
mail.b.mydomain.ac.id
We can sent & receipt email to others or betwen them.
I use these spf command :

    v=spf1 a mx -all 

I am not sure , is that correct or not . When I tried to test these spf using spf checking tools , here is the result :

evaluating v=spf1 a mx -all …
Results – record processed without error.

The result of the test (this should be the default result of your record) was,
ambiguous . The explanation returned was, SPF Ambiguity Warning: No A records found
for: mydomain.ac,id

What should i do to fix these error ?

Thank you very much for any suggestion & help .

Best Answer

There are a couple of things here. First, the error means that you have a specified in the SPF record, but there is no A record in your DNS entries, so either create an address record for the base domain or remove a from the SPF record.

Second, you mention that you have multiple servers that send, but mx is the only other entry in the SPF record as an authorized sender. This means that all of those servers that can send mail should be listed within your domain's MX records. If they are not part of the domain's MX records, you will need to list their individual IP addresses as part of the SPF entry to let others know they are authorized (v=spf1 mx ip4:1.2.3.4 -all if, for example, the IP address for mail.a.mydomain.ac.id were 1.2.3.4).