Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

If you have custom email domains within Learn Amp enabled, use this article to configure SPF with

...

Mailgun.

Sender Policy Framework (SPF) is an open standard aimed at preventing sender address forgery. We partner with SendGrid Mailgun to provide us with reliable email delivery.

 

Custom SPF records

...

If you have an SPF record set for your domain already:

You must add a an alphanumeric string before the all mechanism of this SPF record in order to authenticate mailings through SendGridMailgun.

 

If you do not have an existing SPF record for your domain:

You must create a TXT record with the value provided to you during the domain authentication process. An example of such a record is: 

Code Block

...

v=spf1 include:

...

mailgun.

...

org -all

In this example, we have an SPF record for the authorization of outbound mail for SendGridMailgun. A -all inclusion versus an ~all inclusion indicates that this SPF record is the only record used to authenticate mail for your domain. Make sure to include any other authorized sender into this SPF record if you need to authenticate mailings from other sources. 

Do not create more than one SPF1 record for a given domain. If more than one SPF1 record exists for a domain, you will want to merge any additional SPF records into one SPF record. You also cannot have more than 10 DNS lookups in your single SPF record. 

Working with an existing SPF record

 

If you already have an SPF record for your domain, you need to add SendGrid Mailgun SPF inclusion into your existing record. 

For example, say your existing record looks like this: 

Code Block

...

v=spf1 a mx include:\_spf.google.com include:spf.protection.outlook.com -

...

all

You would need to add the SendGrid lookup at the end of the string, before the all mechanism, like so: 

Code Block

...

v=spf1 a mx include:\_spf.google.com include:spf.protection.outlook.com include:

...

mailgun.

...

org -

...

all