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?


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

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.

Hello, @diveshjain25

This could be due to a lot of things. But most likely your IP got blacklisted or just Gmail being too picky about the email.

I usually use this site in such cases:

Just send an email to the email address that you see on the site, and then check your score.

You can also re-send the exact email that was delivered to the SPAM folder - use the same subject, content, signatures and attachments

This would point you to the right direction.

Hope that this helps! Regards, Alex