Hi guys,

Can someone point me to a guide or explanation on how to setup DKIM and DMARC? I am using PHPmailer and my emails go to SPAM for outlook.


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.


DKIM requires some knowledge about generating certificates. However, PHPMailer’s DKIM examples should help tremendously:

DMARC is just a record you add to your DNS after you’ve done SPF and DKIM. This wizard I found can help create this:

I also found which will help you verify DKIM, SPF, and DMARC.

Google’s answer here gives some other tips to take a look at: I haven’t tried out Google’s Postmaster tools, but Gmail itself does provide indication if DKIM and SPF pass.

Hello, all

You can make sure that your mailing list is fully opted-in and that you’re using SMTP authentication.

Also to test the mail score of your emails you can use a website like:

and then send a valid test - an exact email with a valid - subject, message body, full signatures and attachments.

Regards, Alex