I can not competently send mail in conjunction:
- PHP mail () function
- exim4
- ubuntu 14.04
A piece of code on php
mail( $to, $subject, $body, $headers, '-f' . $from ); // В $headers есть заголовки: From, Reply-To, Return-Path sendmail_path: /urs/sbin/sendmail -i -t (all by default) is registered in php.ini .
Exim4 works and sends mail.
DKIM, SPF is also ok.
Problem:
I send mail to the mail-tester.com mail-tester.com and it tells me that I do not have rDNS records. As a result, all my letters fly to spam.
VPS purchased in one office (reg.ru), domain in another (GoDaddy). A domain is bound to Yandex.Mail for a domain. Those. MX records indicate:
MX priority 10, @, is sent to mx.yandex.net
Mail, works, accepts.
The problem is only in rDNS or RTC.
Output of several commands: nslookup МОЙ_VPS_IP
Server: 8.8.8.8 Address: 8.8.8.8#53 Non-authoritative answer: 666.666.666.666.in-addr.arpa name = mysite.com. Authoritative answers can be found from: Online rDNS or RTC verification services say that I’m fine and show my domain, which is bound to ip.
PS If you need output any more commands, write.
Yandex only accepts mail (without their SMTP). VPS use to send.