February 11, 2019 464 views
Email PHP Ubuntu 18.04

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.


1 Answer


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.

Have another answer? Share your knowledge.