Report this

What is the reason for this report?

Emails from postfix going to spam folder in gmail

Posted on November 8, 2020

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?



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!

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:

https://www.mail-tester.com/

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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.