V
V
Vincent12018-10-25 09:29:24
Exim
Vincent1, 2018-10-25 09:29:24

How to change shipping route in exim?

My server is trying to send some system messages to [email protected] and I'm not happy with that. To make a redirect to [email protected], I edited it by /etc/aliasesadding a line there root: [email protected], then newaliases.
And just in case, I wrote it in ~/.forward-> [email protected], then rebooted exim invoke-rc.d exim4 restart.
As a result, on one server I have what I wanted

[email protected]:~# exim -bt root
[email protected]
    <-- [email protected]
  router = dnslookup, transport = remote_smtp
  host mx.yandex.ru [213.180.204.89] MX=10
  host mx.yandex.ru [77.88.21.89]    MX=10
  host mx.yandex.ru [87.250.250.89]  MX=10
  host mx.yandex.ru [93.158.134.89]  MX=10
  host mx.yandex.ru [213.180.193.89] MX=10

And on the other
[email protected]:~# exim -bt root
[email protected] is undeliverable: all relevant MX records point to non-existent hosts

Friends, tell me what I'm missing?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
Vincent1, 2018-10-25
@Vincent1

The problem was in VestaCP. You need to add your hostname.com as a MAIL domain to the panel and then the address from ~/.forward is pulled up without any problems

S
Saboteur, 2018-10-25
@saboteur_kiev

Perhaps after fixing /etc/aliases you need to compile them
sudo newaliases

R
Ruslan Fedoseev, 2018-10-25
@martin74ua

not ~/forward, but ~/.forward

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question