Skip to content
English
  • There are no suggestions because the search field is empty.

Whitelisting to allow outside email

A DNS lookup of our SPF records would be the best way to obtain a complete list of our current IP's used for sending. As our IP's do change occasionally, it would be best to occasionally perform the DNS look-up of our SPF records to see if there are any configuration changes that you'll need to make. 
 
You can perform a lookup of our DNS records at any time to obtain all of our current IP's with three `dig` commands: 
Begin by doing a `dig` to find the Mailgun SPF record. For example:     
 
$ dig -t TXT mailgun.org +short"mailru-verification: 78a0a835a374d20b""v=spf1 include:spf1.mailgun.org include:spf2.mailgun.org ~all" 
 
Next, perform a `dig` for the value of each _include_ mechanism. For example:     
$ dig -t ANY spf1.mailgun.org +short"v=spf1 ip4:173.193.210.32/27 ip4:50.23.218.192/27 ip4:174.37.226.64/27 ip4:208.43.239.136/30 ip4:50.23.215.176/30 ip4:184.173.105.0/24 ip4:184.173.153.0/24 ~all"$ dig -t ANY spf2.mailgun.org +short"v=spf1 ip4:209.61.151.0/24 ip4:166.78.68.0/22 ip4:198.61.254.0/23 ip4:192.237.158.0/23 ip4:23.253.182.0/24 ip4:23.253.183.0/24 ip4:104.130.96.0/28 ~all" 
 
Alternatively, the website below can help you to obtain the same information. You'll enter the value of "mailgun.org" in the text box to see all the values with _include_ mechanisms. You will then query each value listed by an _include_ mechanism to see the results: http://www.kitterman.com/spf/validate.html