A
A
aroun2017-01-15 02:02:01
linux
aroun, 2017-01-15 02:02:01

How to forward emails addressed to a specific domain?

There are two mailers (servers) serving one domain.
In fact, one server no longer serves, and everything has been fixed in the DNS, but letters still sometimes come.
I would like to write a beautiful rule in postfix so that all mail domain.rugoes to another server, something like this:

relay_domains = domain.ru
relay_transport = hash:/etc/postfix/transport
transport_maps = hash:/etc/postfix/transport

cat "/etc/postfix/transport"
domain.ru smtp:mail.domain.ru:25

Specifically, this rule does not work, the sender receives a whack - Relay access denied

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir, 2017-01-16
@n1cew0lf

Does mydestination have this domain?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question