How to check if Sender Privacy Framework (SPF) is setup correctly ?
Sender Privacy Framework (SPF) is a method used to prevent sender address forgery, i.e. someone to pretend someone he/she is not and send SPAM emails.
Open a terminal window and type:
You may see a message stating:
Another approach could be to query the DNS server that your web site is using:
The output should be:
Notes:
your-domain.com is YOUR domain
Address: 11.22.33.44 is your domain's IP address.
the record in /var/named/data/zone.your-domain.com has contains following line.
your-domain.com. IN TXT "v=spf1 a mx -all"
Open a terminal window and type:
$ host -t txt your-domain.com
You may see a message stating:
"your-domain.com has no TXT record", so DNS changes need some time to propagate.
Another approach could be to query the DNS server that your web site is using:
$ host -t txt your-domain.com ns1.your-domain.com
The output should be:
Using domain server:
Name: ns1.your-domain.com
Address: 11.22.33.44#53
Aliases:
your-domain.com descriptive text "v=spf1 a mx -all"
Notes:
your-domain.com is YOUR domain
Address: 11.22.33.44 is your domain's IP address.
the record in /var/named/data/zone.your-domain.com has contains following line.
your-domain.com. IN TXT "v=spf1 a mx -all"