V
V
VS2018-02-19 13:31:24
postfix
VS, 2018-02-19 13:31:24

How to set up relayhost for one outgoing address?

Hello.
In general, a lot of different mail can go through postfix. It is necessary to send mail to an external mailer at a certain address ([email protected]) without affecting other addresses (*@example.ru), they are sent directly. There is a relayhost setting, but it redirects all mail.
What are the options?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
VS, 2018-02-20
@tirael777

Postfix has such a sender_dependent_relayhost_maps setting,
you can set it like this: [email protected] [gate.example.ru]
And it is this letter that will be sent to the external MTA

P
Puma Thailand, 2018-02-20
@opium

Make an alias for this address

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question