This is an old revision of the document!


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 (75.98.175.91) and GMail (_spf.google.com):

v=spf1 a mx ip4:75.98.175.91 include:_spf.google.com ~all

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

v=spf1 a mx ip4:75.98.175.91 ip4:12.34.56.78 include:_spf.google.com ~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: http://www.mail-tester.com/web-yLwB8z

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 [email protected] -s testing [mail-checker address]