Configure outbound email addresses

by Eelco Wiersma

Configure SPF

SPF records are used to validate the sending server IP address and is used by most inbound mail servers. SPF Information.

To configure SPF add a new TXT record.

v=spf1 include:mailgun.org ~all

If you already have an SPF record configured you can add the include:mailgun.org part to the existing record.

v=spf1 ip:1.2.3.4 include:mailserver.com include:mailgun.org ~all

Configure DKIM

Add a new TXT record under domain/host pic._domainkey and add the following snippet as the value.

k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCoe7mUNtfpbKMnPQiCiric5S/DuS+Bbs1O31mvkQJbtKgbZqkzYfELrZ4j9NrEY+8S8zRrNIL+DEIcu+kyI6hksXQvTxKKCHNx+z9LEwnXYyZLQ4jkLNxVUPa7Es4tvLsgrJzrly6Dhw1BNENwg5hgMQ0vPPDSjpUo+rR/XbqLVwIDAQAB