fbpx

How do I set up SPF and DKIM on Linux?

SPF is pretty straight forward if you know how to add TXT DNS records.

But the syntax can be confusing.

Here is a sample record that adds an IP and Outlook settings:

“v=spf1 a mx ip4:xxx.183.121.155 include:spf.protection.outlook.com -all”

Don’t ask what the difference is between – and ~, but just take it as the most confusing parameter ever.

DKIM guide is quite intense but if you follow the exact guide below, and the tip, then you will be good.

Reference:

https://philio.me/setting-up-dkim-with-sendmail-on-ubuntu-14-04/

If you don’t have a listener on port 8891, then follow the last answer on this post, the one about¬†ExecStart

https://serverfault.com/questions/863468/milter-opendkim-error-connecting-to-filter-connection-refused-by-localhost

How to test? Well, when you’re done, send a message to Gmail, reveal entire message, and then look for PASS x 2.

Other guides:

Google SPF:

https://support.google.com/a/answer/33786?hl=en

SPF

https://mediatemple.net/community/products/dv/204404314/how-can-i-create-an-spf-record-for-my-domain

Include more than one SPF (DON’T ADD 2 X TXT!!!)

https://serverfault.com/questions/283125/how-to-include-multiple-domains-in-an-spf-txt-record

Office 365 @ Go Daddy

https://docs.microsoft.com/en-us/office365/admin/dns/create-dns-records-at-godaddy?view=o365-worldwide

Google DKIM:

https://support.google.com/a/answer/174124

https://support.google.com/a/answer/180504

Share this article

Share on facebook
Share on twitter
Share on linkedin

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll to Top