On 2017-02-22 16:51, Zalezny Niezalezny wrote:
Hi,

I just would like to know, how may send specified messages to
different hosts.

/etc/postfix/transport

domain.com [1]    relay:mx-domain.local
*       host

All E-mails To: u...@domain.com system sending to mx-domain.local.
This is working fine.

But what should I do, if I would like to send an e-mail To:
user_...@domain.com to some other system with IP 10.204.2.2 ? What
should I do ?

add the emailadress and nexthop definition to transport_maps before the domain.com entry

user_...@domain.com   smtp:10.204.2.2
domain.com       relay:mx-domain.local
*       host

see transport(5) section Table Search Order
http://www.postfix.org/transport.5.html

The same question for senders. How to send message From:
sender@domain.example not via my default gateway ("*   host" like the
rest of not defined E-mails ) but via some other system "host2" ?

How to properly do it ?

i think sender_dependent_transport_maps should do it
http://www.postfix.org/postconf.5.html#sender_dependent_default_transport_maps

Thanks in advance for Your support.

Cheers

Zalezny


Links:
------
[1] http://domain.com

--
 Christian Kivalo

Reply via email to