How to configure exim mail server?

Hello! Help please with configuring exim. Everything works normally, but all outgoing emails were spam. Using the site I tested the domain, get this: 220 centos2.production1 4.90_1 ESMTP Exim Tue, 26 Mar 2019 14:25:32 +0300
while the name should be mail.domain.ru
well, I found on the Internet that you need to add a line primary_hostname = mail.domain.ru in exim.conf.
Now when testirovanie mailbox says "Send test email message: the server Response: 421 Cannot connect to SMTP server "
I don't know what to do...
March 19th 20 at 08:40
3 answers
March 19th 20 at 08:42
Using the site I tested the domain

Explain how was it tested?

What email providers of those recipients, where the letters fall into the spam? Gmail? Yandex? Got to spam all users or only certain providers?

well, I found on the Internet that you need to add a line primary_hostname = mail.domain.ru in exim.conf.


Return, as it was before.
answer separately - Shayna_Stiedemann commented on March 19th 20 at 08:45
March 19th 20 at 08:44
March 19th 20 at 08:46
https://mxtoolbox.com/SuperTool.aspx?action=mx%3ar... this website, now the domain corresponds to the post.
got from different providers
Changed as it now says: Send test email message: the connection to the server was interrupted. If the problem persists, contact your server administrator or Internet service provider. Server response: 421 Cannot connect to SMTP server connect error 10060
looks like something else broke. But in roundcube(a web interface is sent and received normally)

Find more questions by tags Exim