Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
mail_servers [2015/06/01 16:51]
steve
mail_servers [2018/10/18 02:07]
steve
Line 21: Line 21:
 SPF records are DNS ''​TXT''​ records that verify that the server that is sending outgoing email from your domain name is authorized. 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 the ''​@'' ​''​TXT''​ entry for Digital Trike that allows A2 Hosting (75.98.175.91) and GMail (_spf.google.com):+Here's a basic example where any email sent out from the domain'​s A record is authorized. Otherwise, do a hard fail. 
 + 
 +Using as an example, ''​beandog.org'':​
  
 <​code>​ <​code>​
-v=spf1 a mx ip4:​75.98.175.91 include:​_spf.google.com ~all+v=spf1 a -all
 </​code>​ </​code>​
  
-If you want to add multiple IP addressesthen add an extra ''​ip4:''​ rule to the existing record:+Authorize only servers that have MX entries in DNS (such as mail1.beandog.orgmail2.beandog.org):
  
 <​code>​ <​code>​
-v=spf1 ​mx ip4:​75.98.175.91 ip4:​12.34.56.78 include:​_spf.google.com ~all+v=spf1 mx -all
 </​code>​ </​code>​
 +
 +Find the current MX servers using dig:
 +
 +<​code>​
 +dig +short mx beandog.org
 +0 mail.beandog.org.
 +</​code>​
 +
  
 === Mail Tester === === Mail Tester ===
Line 42: Line 52:
  
 <​code>​ <​code>​
-echo testing email | mail -r website@digitaltrike.com -s testing [mail-checker address] ​+echo testing email | mail -r website@domain.com -s testing [mail-checker address] ​
 </​code>​ </​code>​