Hello. I can’t figure it out until the end, I ask for your help, ubuntu 14.04 is installed on the server, and I installed Postfix on it.

I am sending a letter via the console:

mail -s "letter subject" user@gmail.com
cc
body of the letter
CTRL + D

Letter arrives

But when I send to @mail .ru, the letter does not reach, and I see this in the logs.

How to be?

    2 answers 2

    PTR records need to be configured. :)

      said: 550 Pry-records. Please get a custom reverse DNS name from your ISP for your host 46.8.13.30

      1 Make sure that your IP is not with spam / public databases https://2ip.ru/spam/?ip=46.8.13.30 (you are lucky it is not there)

      2 Make sure you have the correct hostname in the postfix settings, and not localhost, ubuntu, or mysite.ru.

      postconf -n | grep myhostname 

      If this is not the case, then in /etc/postfix/main.cf correct host name, that is, your domain pointing to your IP 46.8.13.30 for example:

       myhostname = correct.domain.ru mydomain = $myhostname 

      3 Make sure that the return zone (PTR record) of your IP matches your domain correct.domain.ru

       ping correct.domain.ru 

      If this is not the case, then ask your Internet provider to indicate the reverse zone (PTR record) of your dedicated IP to your domain correct.domain.ru.

      After that, mail should be accepted by all popular mail servers.