Answer the question
In order to leave comments, you need to log in
How to set up Exim correctly?
I installed Exim, launched it with default settings, but letters do not reach recipients who use Google, Mail.Ru, Yandex, etc.
For my server, I specified a PTR record of the following form - 1.2.3.4 refers to mail.domain.ru
In turn, for the domain.ru domain, the mail subdomain is an MX record and points to my server 1.2.3.4 .
Have I configured everything correctly in terms of DNS and PTR?
The logs are as follows:
Tried to send an email
[email protected]:~# echo 'test' | mail -s test [email protected]
Answer the question
In order to leave comments, you need to log in
It has long been a rule - when starting any mail server that will work with the outside world:
1. Check that mail.domain.com points to the server address, make sure that the PTR of the server address points to mail.domain.com
2. primary_hostname = mail.domain.com
(in Exim. This is how we introduce ourselves to the rest)
3. domainlist relay_to_domains = domain.com
(this is how we enable mail relay for the main domain
4. SPF record in DNS - "v=spf1 a mx ip4:1.2.3.4 ~all"
5. Generate DKIM certificates for domain.com, configure DNS and Exim to work with this signature.
5a. In advanced cases - setting up SPF and DKIM for the mail.domain.com domain, for letters generated by the server itself
6. Test letter to a mailbox in Yandex to see a green sign that DKIM is configured correctly
7. I almost forgot - in/etc/aliases
the string " root: [email protected]
" (together with " webmaster: root
"), then newaliases
to receive hit reports.
A minimum of actions - working mail.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question