Emails from postfix going to spam folder in gmail
I am using postfix to send e-mails. My all e-mails are going to gmail spam folders, while I am using proper headers when sending from php mail() function. 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?
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.×