How to Enable SPF for Mailgun
To set up your SPF record with Mailgun or edit your current SPF record to include Mailgun, follow the steps below:
- Sign in to your domain account at your domain host
- Locate page for updating your domain’s DNS records (e.g., DNS Management, Name Server Management, Advanced Settings)
- Find your TXT records to check if you have an existing SPF record (record will start with v=spf1).
- If you have an existing SPF record, follow the instructions below to update an existing SPF record with multiple mail servers.
- In your existing SPF record, you will append include:mailgun.org
- For example, if your existing record looked like v=spf1; mx; ip4:1.2.3.4; you would add the above include as follows v=spf1; mx; ip4:1.2.3.4; include:mailgun.org;
- If you do not have an SPF record, Create a new TXT record with the following values:
- In the Name/Host/Alias field, enter @ or leave blank (other DNS records might indicate which one you need)
- In the Time to Live (TTL) field, enter 3600 or leave the default
- In the Value/Answer/Destination field, enter: v=spf1 include:mailgun.org ~all and Save the TXT record
How to Enable DKIM for Mailgun
- 1. Go to the Domains tab and click on your domain
- 2. You can find the DKIM record under the section for "Add DNS Records for Sending"
- 3. Go to your DNS provider and add the DKIM Record
You will add a TXT record with a Name/Host of ._domainkey.yourdomain.com which was provider in the Mailgun console