OVH Community, your new community space.

gmail refuse sendmail email

12/02/2016, 13h12
I have an error trying to send an email in a php script using sendmail:

Feb 12 12:56:07 ns380959 sendmail[5437]: u1CBu7pq005437:, ctladdr=www-data (33/33), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=31559, relay=[] [], dsn=4.0.0, stat=Deferred: Connection refused by []
Also, this is what I get when I try to send from root

550-5.7.1 [2001:41d0:e:4c8::1] Our system has detected that this message does not meet IPv6 sending guidelines regarding PTR records and authentication. Please review
550-5.7.1 for more** information. ej8si17844651wjd.175 - gsmtp
/root/dead.letter... Saved message in /root/dead.letter
Closing connection to
>>> QUIT
Question is, how can I make IPv6 become good for gmail? I don't know how to do, I am very newbie.
Thank you