I made a mail server using **Postfix **to work with two domains: domain1.ru and domain2.ru. I registered DNS records with registrars, created mailboxes for these domains, everything works.
I had to transfer domain2.ru to the MAIL.RU server (created the same mail names). I registered DNS records with registrars, mailboxes are working. Users of domain2.ru come to my server to view old letters, but they themselves already work through MAIL.RU.
But a problem arose: If I write from domain1.ru mail to domain2.ru mail, then the letters go to my server, and not to the MAIL.RU server.
On my server in the control panel, Postfix made domain2.ru inactive.
Removed the value:
mydestination = localhost.$mydomain, localhost, localhost.localdomain
In /etc/postfix/main.cf and wrote:
mydestination =
But it didn’t help. Please tell me how to fix it.