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.

×
1 answer

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

  • I have checked with https://www.mail-tester.com/ and got score 10/10 that means my mail is not spam.

    Still when sending to gmail it is going to spam folder.

    • What you can do is to move the email from the SPAM folder to the inbox or mark the email as NOT spam.

      Gmail should detect this activity and in theory it should improve the mail deliver ability for future emails as well.

      However it is totally up to Gmail’s policies how the mail score is evaluated.

      Hope that this helps!
      Regards,
      Alex

Submit an Answer