probleme spam with send mail

Hello I user ubuntu 16.04 and I have OVH domain name and I hosted it in ovh dedicate service and I use letsencrypt for SSL I configured SPF for my domain name and I make the PTR of my dedicate server to my domaine juste now it’s ok. I need to send mail from php that why I’m using mail() function with sendmail. it work but gmail make all my mails in spam . in logs I found that gmail return : Jan 12 03:18:02 sowazi sm-mta[2230]: STARTTLS=client,, version=TLSv1.2, verify=FAIL, cipher=ECDHE-RSA-AES128-GCM-SHA256, bits=128/128 please help me it’s urgent


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.


I would recommend sending an email to this website here

You would get a really nice report on what you should improve in order to increase the deliverability rate of your emails.

Regards, Bobby