Mail Servers

SPF Records

SPF records are DNS TXT records that verify that the server that is sending outgoing email from your domain name is authorized.

As an example, here is an @ TXT entry that allows A2 Hosting ( and GMail (

v=spf1 a mx ip4: ~all

If you want to add multiple IP addresses, then add an extra ip4: rule to the existing record:

v=spf1 a mx ip4: ip4: ~all

Mail Tester

Mail Tester is a great site that you can send emails to and see how it is regarded by other mail servers. It will give recommendations on how to improve SPF records, DKIM signing, SpamAssassin results, etc.

Here is an example one sent from the A2 Hosting shared account:

You can use mailx to send email directly. When using it, set the From: address properly as it would be sent:

echo testing email | mail -r -s testing [mail-checker address]