I am hosting my website on digital ocean and using LAMP stack. I am using postfix to send e-mails. My all e-mails are going to gmail spam folders, I am using proper headers when sending from php mail() function still mails are going to spam folders. I have found this is due to dns entries but I have made all the entries i.e spf, dmarc, dkim and I have added my domain name in mx entry.
Can anyone help me out in solving this?