Do you have some documentation on configuring SPF and DKIM?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Regarding SPF, you can see the following article that explains how SPF works:
Once you’ve given that a read you can follow the steps on how to add DNS records via your DigitalOcean Control panel here:
You can add the SPF and the DKIM records as TXT records there.
Regarding DKIM, you can check the following article. It gives some steps which you can follow to create DKIM on your droplet
We do have an article on How To use an SPF Record to Prevent Spoofing & Improve E-mail Reliability
A DKIM record is another measure that can prevent spoofing and improve mail reliability. You can use any online tool to generate the key for you.
Also if you use any control panel for your server, like cPanel it will have the built-in functionality to create the DKIM record on your behalf
Once created you can use a DKIM checker tool like the one provided from mxtoolbox and check whether the generated key is valid.
Hope that this helps!